@things-factory/integration-base 6.2.49 → 6.2.50

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.49",
3
+ "version": "6.2.50",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -26,12 +26,12 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@apollo/client": "^3.6.9",
29
- "@things-factory/api": "^6.2.49",
30
- "@things-factory/auth-base": "^6.2.49",
29
+ "@things-factory/api": "^6.2.50",
30
+ "@things-factory/auth-base": "^6.2.50",
31
31
  "@things-factory/env": "^6.2.33",
32
- "@things-factory/oauth2-client": "^6.2.49",
33
- "@things-factory/scheduler-client": "^6.2.49",
34
- "@things-factory/shell": "^6.2.48",
32
+ "@things-factory/oauth2-client": "^6.2.50",
33
+ "@things-factory/scheduler-client": "^6.2.50",
34
+ "@things-factory/shell": "^6.2.50",
35
35
  "async-mqtt": "^2.5.0",
36
36
  "chance": "^1.1.11",
37
37
  "cross-fetch": "^3.0.4",
@@ -46,5 +46,5 @@
46
46
  "devDependencies": {
47
47
  "@types/cron": "^2.0.1"
48
48
  },
49
- "gitHead": "57266c96220301729f9c5cd633af1a4e2a651096"
49
+ "gitHead": "4dc51db04b745ac434d2bb874038ac4c3b47989b"
50
50
  }
@@ -96,7 +96,7 @@ export class ConnectionMutation {
96
96
  async deleteConnection(@Arg('name') name: string, @Ctx() context: ResolverContext): Promise<boolean> {
97
97
  const { domain, tx } = context.state
98
98
 
99
- await tx.getRepository(Connection).delete({ domain, name })
99
+ await tx.getRepository(Connection).delete({ domain: { id: domain.id }, name })
100
100
  return true
101
101
  }
102
102
 
@@ -118,7 +118,7 @@ export class ScenarioMutation {
118
118
  async deleteScenario(@Arg('name') name: string, @Ctx() context: ResolverContext): Promise<boolean> {
119
119
  const { domain, tx } = context.state
120
120
 
121
- await tx.getRepository(Scenario).delete({ domain, name })
121
+ await tx.getRepository(Scenario).delete({ domain: { id: domain.id }, name })
122
122
 
123
123
  return true
124
124
  }