@things-factory/worklist 6.1.13 → 6.1.16

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.1.13",
3
+ "version": "6.1.16",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -38,5 +38,5 @@
38
38
  "@things-factory/shell": "^6.1.12",
39
39
  "moment-timezone": "^0.5.40"
40
40
  },
41
- "gitHead": "8ba2dc3bff36890f7151ebee09a8e57d02cdb180"
41
+ "gitHead": "218327b4644b195bf763f1c5a95fbf8f3fbbcfd9"
42
42
  }
@@ -76,7 +76,7 @@ export async function evalActivityInstanceState(
76
76
  }
77
77
  default:
78
78
  return {
79
- state: activityThreads.find(thread => thread.state == ActivityThreadStatus.Aborted)
79
+ state: activityThreads.some(thread => thread.state == ActivityThreadStatus.Aborted)
80
80
  ? ActivityInstanceStatus.Aborted
81
81
  : ActivityInstanceStatus.Ended,
82
82
  reason: '',
@@ -77,24 +77,4 @@ export class ActivityInstanceMutation {
77
77
  ): Promise<ActivityInstance> {
78
78
  return await abort({ id, reason }, context)
79
79
  }
80
-
81
- @Directive('@transaction')
82
- @Mutation(returns => ActivityInstance, { description: 'To modify ActivityInstance Output Data' })
83
- async updateActivityInstanceOutput(
84
- @Arg('id') id: string,
85
- @Arg('output', { nullable: false }) output: string,
86
- @Ctx() context: any
87
- ): Promise<ActivityInstance> {
88
- const { domain, user, tx } = context.state
89
-
90
- const actInstRepository = tx.getRepository(ActivityInstance)
91
- const actInst = await actInstRepository.findOne(
92
- {
93
- where: { domain: { id: domain.id }, id },
94
- relations: ['domain','updater','creator']
95
- }
96
- )
97
- actInst.output = output;
98
- return await actInstRepository.save(actInst);
99
- }
100
80
  }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initMiddlewares = void 0;
4
- function initMiddlewares(app) {
5
- /* can add middlewares into app */
6
- }
7
- exports.initMiddlewares = initMiddlewares;
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/middlewares/index.ts"],"names":[],"mappings":";;;AAAA,SAAgB,eAAe,CAAC,GAAG;IACjC,kCAAkC;AACpC,CAAC;AAFD,0CAEC","sourcesContent":["export function initMiddlewares(app) {\n /* can add middlewares into app */\n}\n"]}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.migrations = void 0;
4
- const glob = require('glob');
5
- const path = require('path');
6
- exports.migrations = [];
7
- glob.sync(path.resolve(__dirname, '.', '**', '*.js')).forEach(function (file) {
8
- if (file.indexOf('index.js') !== -1)
9
- return;
10
- exports.migrations = exports.migrations.concat(Object.values(require(path.resolve(file))) || []);
11
- });
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/migrations/index.ts"],"names":[],"mappings":";;;AAAA,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAEjB,QAAA,UAAU,GAAG,EAAE,CAAA;AAE1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,UAAS,IAAI;IACzE,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAAE,OAAM;IAC3C,kBAAU,GAAG,kBAAU,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;AAClF,CAAC,CAAC,CAAA","sourcesContent":["const glob = require('glob')\nconst path = require('path')\n\nexport var migrations = []\n\nglob.sync(path.resolve(__dirname, '.', '**', '*.js')).forEach(function(file) {\n if (file.indexOf('index.js') !== -1) return\n migrations = migrations.concat(Object.values(require(path.resolve(file))) || [])\n})\n"]}