@things-factory/worklist 6.0.113 → 6.0.115

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/worklist",
3
- "version": "6.0.113",
3
+ "version": "6.0.115",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -29,14 +29,14 @@
29
29
  "@operato/event-view": "^1.0.0",
30
30
  "@operato/graphql": "^1.0.0",
31
31
  "@operato/grist-editor": "^1.0.0",
32
- "@things-factory/attachment-base": "^6.0.113",
33
- "@things-factory/auth-base": "^6.0.113",
34
- "@things-factory/board-service": "^6.0.113",
35
- "@things-factory/context-ui": "^6.0.113",
36
- "@things-factory/organization": "^6.0.113",
37
- "@things-factory/scheduler-client": "^6.0.113",
38
- "@things-factory/shell": "^6.0.113",
32
+ "@things-factory/attachment-base": "^6.0.115",
33
+ "@things-factory/auth-base": "^6.0.115",
34
+ "@things-factory/board-service": "^6.0.115",
35
+ "@things-factory/context-ui": "^6.0.115",
36
+ "@things-factory/organization": "^6.0.115",
37
+ "@things-factory/scheduler-client": "^6.0.115",
38
+ "@things-factory/shell": "^6.0.115",
39
39
  "moment-timezone": "^0.5.40"
40
40
  },
41
- "gitHead": "1f753c3122911f7e014edae7e469784cdfb8678e"
41
+ "gitHead": "4937b4fe2040f49d906a4df5cdfced17553b83ef"
42
42
  }
@@ -1,3 +1,4 @@
1
+ import { In } from 'typeorm'
1
2
  import { Arg, Args, Ctx, FieldResolver, Query, Resolver, Root } from 'type-graphql'
2
3
  import { Brackets } from 'typeorm'
3
4
 
@@ -16,7 +17,7 @@ export class ActivityQuery {
16
17
  const { domain } = context.state
17
18
 
18
19
  return await getRepository(Activity).findOne({
19
- where: { domain: { id: domain.id }, id }
20
+ where: { domain: { id: In([domain.id, domain.parentId].filter(Boolean)) }, id }
20
21
  })
21
22
  }
22
23
 
@@ -25,7 +26,7 @@ export class ActivityQuery {
25
26
  const { domain } = context.state
26
27
 
27
28
  return await getRepository(Activity).findOne({
28
- where: { domain: { id: domain.id }, name }
29
+ where: { domain: { id: In([domain.id, domain.parentId].filter(Boolean)) }, name }
29
30
  })
30
31
  }
31
32
 
@@ -1,3 +1,4 @@
1
+ import { In } from 'typeorm'
1
2
  import { Arg, Args, Ctx, FieldResolver, Query, Resolver, Root } from 'type-graphql'
2
3
 
3
4
  import { Attachment } from '@things-factory/attachment-base'
@@ -15,7 +16,7 @@ export class ActivityTemplateQuery {
15
16
  const { domain } = context.state
16
17
 
17
18
  return await getRepository(ActivityTemplate).findOne({
18
- where: { domain: { id: domain.id }, id }
19
+ where: { domain: { id: In([domain.id, domain.parentId].filter(Boolean)) }, id }
19
20
  })
20
21
  }
21
22