@pxp-nd/flow 1.0.22 → 1.0.23

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.
@@ -46,7 +46,8 @@ let Event = class Event {
46
46
  const executeView = `select * from ${originName} where ${originKey} = ${newEvent.dataId}`;
47
47
  const resExecuteView = await typeorm_1.getManager().query(executeView);
48
48
  const flow = await core_1.__(Flow_1.default.findOne({ where: { flowId: n.flowId } }));
49
- if (flow.vendorId == resExecuteView[0].vendor_id && this.checkConditions(resExecuteView[0], n.flowId, newEvent.actionId)) {
49
+ const boolConditions = await core_1.__(this.checkConditions(resExecuteView[0], n.flowId, newEvent.actionId));
50
+ if (flow.vendorId == resExecuteView[0].vendor_id && boolConditions) {
50
51
  //now check all conditions
51
52
  let flowInstance = new FlowInstance_1.default();
52
53
  flowInstance.flowId = n.flowId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pxp-nd/flow",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Workflow module for pxp-nd framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",