@balena/open-balena-api 30.0.10 → 30.0.11-build-get-write-context-58bd1e8c84c931f5fa90ddbfc01b7e13c16680b8-1

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,28 +12,28 @@ const { api } = sbvrUtils;
12
12
  const supervisor = new Supervisor();
13
13
  const getWriteContext = (() => {
14
14
  const $getWriteContext = multiCacheMemoizee(async (uuid, req) => {
15
- return await sbvrUtils.db.readTransaction(async (tx) => {
16
- try {
17
- const result = await api.resin.request({
15
+ try {
16
+ const result = await sbvrUtils.db.readTransaction(async (tx) => {
17
+ return await api.resin.request({
18
18
  method: 'POST',
19
19
  // We use a parameter alias to signify to pinejs that it's a beneficial query to cache
20
20
  url: `device(uuid=@uuid)/canAccess?@uuid='${uuid}'`,
21
21
  passthrough: { req, tx },
22
22
  body: { action: 'write-log' },
23
23
  });
24
- const deviceId = result?.d?.[0]?.id;
25
- if (deviceId == null) {
26
- return false;
27
- }
28
- return addRetentionLimit({
29
- id: deviceId,
30
- uuid,
31
- });
32
- }
33
- catch {
24
+ });
25
+ const deviceId = result?.d?.[0]?.id;
26
+ if (deviceId == null) {
34
27
  return false;
35
28
  }
36
- });
29
+ return addRetentionLimit({
30
+ id: deviceId,
31
+ uuid,
32
+ });
33
+ }
34
+ catch {
35
+ return false;
36
+ }
37
37
  }, {
38
38
  cacheKey: 'getDeviceLogsWriteContext',
39
39
  promise: true,
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../../src/features/device-logs/lib/store.ts"],"names":[],"mappings":"AAQA,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GAC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AC;QAAC,OAAO,GAAG,EAAE,CAAC;YACd,iBAAiB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QAClC,CAAC;IACF,CAAC;IACD,SAAS,QAAQ;QAChB,IAAI,gBAAgB,KAAK,KAAK,EAAE,CAAC;YAChC,OAAO;QACR,CAAC;QACD,8DAA8D;QAC9D,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS;YAC9B,CAAC,CAAC,0BAA0B;YAC5B,CAAC,CAAC,uCAAuC,CAAC;QAC3C,UAAU,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QAC9B,gBAAgB,GAAG,IAAI,CAAC;IACzB,CAAC;AACF,CAAC"}
1
+ {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../../src/features/device-logs/lib/store.ts"],"names":[],"mappings":"AAQA,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACd,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACN,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,YAAY,EACZ,mBAAmB,GACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EACN,oCAAoC,EACpC,uCAAuC,EACvC,0BAA0B,EAC1B,uBAAuB,EACvB,YAAY,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,kBAAkB,EAClB,uBAAuB,GACvB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,EACL,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,GACzB,GAAG,MAAM,CAAC;AACX,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAE1B,MAAM,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GED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@balena/open-balena-api",
3
3
  "description": "Internet of things, Made Simple",
4
- "version": "30.0.10",
4
+ "version": "30.0.11-build-get-write-context-58bd1e8c84c931f5fa90ddbfc01b7e13c16680b8-1",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -167,6 +167,6 @@
167
167
  "loader": "ts-node/esm/transpile-only"
168
168
  },
169
169
  "versionist": {
170
- "publishedAt": "2024-10-21T14:37:21.912Z"
170
+ "publishedAt": "2024-10-21T16:11:34.250Z"
171
171
  }
172
172
  }