@things-factory/integration-base 6.2.88 → 6.2.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/integration-base",
3
- "version": "6.2.88",
3
+ "version": "6.2.91",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -47,5 +47,5 @@
47
47
  "devDependencies": {
48
48
  "@types/cron": "^2.0.1"
49
49
  },
50
- "gitHead": "700ee6ac193bb6b6bc4f1a569c3ca046a7a049ee"
50
+ "gitHead": "25d1f0e352438699c90189e306bfa456710a19ec"
51
51
  }
@@ -26,7 +26,7 @@ export class ConnectionSubscription {
26
26
  }
27
27
 
28
28
  process.nextTick(async () => {
29
- var where = { domain }
29
+ var where = { domain: { id: domain.id } }
30
30
  if (name) {
31
31
  where['name'] = name
32
32
  }
@@ -40,9 +40,7 @@ export class ConnectionSubscription {
40
40
  pubsub.publish('connection-state', {
41
41
  connectionState: {
42
42
  ...connection,
43
- state: ConnectionManager.getConnectionInstance(connection)
44
- ? ConnectionStatus.CONNECTED
45
- : ConnectionStatus.DISCONNECTED,
43
+ state: ConnectionManager.getConnectionInstance(connection) ? ConnectionStatus.CONNECTED : ConnectionStatus.DISCONNECTED,
46
44
  timestamp: new Date()
47
45
  }
48
46
  })
@@ -60,10 +58,7 @@ export class ConnectionSubscription {
60
58
  )(_, args, context, info)
61
59
  }
62
60
  })
63
- connectionState(
64
- @Root() payload: { connectionState: ConnectionState },
65
- @Arg('name', { nullable: true }) name: string
66
- ): ConnectionState {
61
+ connectionState(@Root() payload: { connectionState: ConnectionState }, @Arg('name', { nullable: true }) name: string): ConnectionState {
67
62
  return payload.connectionState
68
63
  }
69
64