@pxp-nd/flow 1.0.52 → 1.0.54

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