@things-factory/organization 6.0.133 → 6.0.136

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/organization",
3
- "version": "6.0.133",
3
+ "version": "6.0.136",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -35,5 +35,5 @@
35
35
  "@things-factory/contact": "^6.0.133",
36
36
  "@things-factory/shell": "^6.0.133"
37
37
  },
38
- "gitHead": "c08bf83d00cbb66e1338cdfeed8ca91d4e130c97"
38
+ "gitHead": "cf51218550bb112e1a9375a2ee304fe5aa8140eb"
39
39
  }
@@ -52,7 +52,7 @@ function getModelValue(patch: NewApprovalLine | ApprovalLinePatch): ApprovalLine
52
52
  return model.map(m => {
53
53
  return {
54
54
  type: m.type,
55
- value: m.approver?.id
55
+ approver: m.approver
56
56
  } as ApprovalLineItem
57
57
  })
58
58
  }
@@ -41,8 +41,10 @@ async function getModel(approvalLine: ApprovalLine, context: ResolverContext): P
41
41
  var approvalLineItemList = []
42
42
 
43
43
  for (let item of model) {
44
- var { type, value: id } = item
45
- var approver
44
+ /* deprecated "value", use approver */
45
+ var { type, value, approver } = item
46
+ var id = approver?.id || value
47
+ approver = null
46
48
 
47
49
  switch (type) {
48
50
  case OrgMemberTargetType.Employee: