@things-factory/dataset 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/dataset",
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,
@@ -40,15 +40,15 @@
40
40
  "@things-factory/aws-base": "^6.0.133",
41
41
  "@things-factory/board-service": "^6.0.133",
42
42
  "@things-factory/env": "^6.0.124",
43
- "@things-factory/organization": "^6.0.133",
43
+ "@things-factory/organization": "^6.0.136",
44
44
  "@things-factory/scheduler-client": "^6.0.133",
45
45
  "@things-factory/shell": "^6.0.133",
46
46
  "@things-factory/work-shift": "^6.0.133",
47
- "@things-factory/worklist": "^6.0.133",
47
+ "@things-factory/worklist": "^6.0.136",
48
48
  "cron-parser": "^4.3.0",
49
49
  "moment-timezone": "^0.5.40",
50
50
  "simple-statistics": "^7.8.3",
51
51
  "statistics": "^3.3.0"
52
52
  },
53
- "gitHead": "c08bf83d00cbb66e1338cdfeed8ca91d4e130c97"
53
+ "gitHead": "cf51218550bb112e1a9375a2ee304fe5aa8140eb"
54
54
  }
@@ -189,8 +189,10 @@ export class DataSetQuery {
189
189
  var approvalLineItems = []
190
190
 
191
191
  for (let item of approvalLine) {
192
- var { type, value: id } = item
193
- var approver
192
+ // "value" deprecated. to be removed
193
+ var { type, approver, value } = item
194
+ var id = approver?.id || value
195
+ approver = null
194
196
 
195
197
  switch (type) {
196
198
  case 'Employee':
@@ -211,7 +213,7 @@ export class DataSetQuery {
211
213
  default:
212
214
  }
213
215
 
214
- id ? approvalLineItems.push({ type, value: id, approver }) : approvalLineItems.push({ type })
216
+ id ? approvalLineItems.push({ type, approver }) : approvalLineItems.push({ type })
215
217
  }
216
218
 
217
219
  return approvalLineItems