@things-factory/process 6.1.59 → 6.1.63

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/process",
3
- "version": "6.1.59",
3
+ "version": "6.1.63",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -34,11 +34,11 @@
34
34
  "@things-factory/auth-base": "^6.1.48",
35
35
  "@things-factory/board-service": "^6.1.55",
36
36
  "@things-factory/context-ui": "^6.1.48",
37
- "@things-factory/organization": "^6.1.59",
37
+ "@things-factory/organization": "^6.1.63",
38
38
  "@things-factory/scheduler-client": "^6.1.48",
39
39
  "@things-factory/shell": "^6.1.48",
40
- "@things-factory/worklist": "^6.1.59",
40
+ "@things-factory/worklist": "^6.1.63",
41
41
  "moment-timezone": "^0.5.40"
42
42
  },
43
- "gitHead": "5171439c6798421e40997498f5e1936f86af2671"
43
+ "gitHead": "8fe392456b1fe6a06df7eaae92be3ef00ce5a743"
44
44
  }
@@ -128,11 +128,11 @@ export class ProcessInstanceQuery {
128
128
 
129
129
  @FieldResolver(type => User)
130
130
  async updater(@Root() processInstance: ProcessInstance): Promise<User> {
131
- return processInstance.updater && (await getRepository(User).findOneBy({ id: processInstance.updaterId }))
131
+ return processInstance.updaterId && (await getRepository(User).findOneBy({ id: processInstance.updaterId }))
132
132
  }
133
133
 
134
134
  @FieldResolver(type => User)
135
135
  async creator(@Root() processInstance: ProcessInstance): Promise<User> {
136
- return processInstance.creator && (await getRepository(User).findOneBy({ id: processInstance.creatorId }))
136
+ return processInstance.creatorId && (await getRepository(User).findOneBy({ id: processInstance.creatorId }))
137
137
  }
138
138
  }
@@ -48,11 +48,11 @@ export class ProcessThreadQuery {
48
48
 
49
49
  @FieldResolver(type => User)
50
50
  async updater(@Root() processThread: ProcessThread): Promise<User> {
51
- return processThread.updater && (await getRepository(User).findOneBy({ id: processThread.updaterId }))
51
+ return processThread.updaterId && (await getRepository(User).findOneBy({ id: processThread.updaterId }))
52
52
  }
53
53
 
54
54
  @FieldResolver(type => User)
55
55
  async creator(@Root() processThread: ProcessThread): Promise<User> {
56
- return processThread.creator && (await getRepository(User).findOneBy({ id: processThread.creatorId }))
56
+ return processThread.creatorId && (await getRepository(User).findOneBy({ id: processThread.creatorId }))
57
57
  }
58
58
  }