@pxp-nd/flow 1.0.54 → 1.0.55

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.
@@ -439,7 +439,7 @@ let Flow = class Flow extends core_1.Controller {
439
439
  const newNode = manager.create(Node_1.default, {
440
440
  nodeId: undefined,
441
441
  flowId: params.flowId,
442
- isInit: 'N',
442
+ isInit: 'Y',
443
443
  actionId: params.actionId
444
444
  });
445
445
  const saveNode = await manager.save(newNode);
@@ -83,23 +83,23 @@ let Node = class Node extends core_1.Controller {
83
83
  async getParameterizedNode(params, manager) {
84
84
  lodash_1.default.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
85
85
  const { nodeId, flowId, substitutionsSchemaJson = {} } = params;
86
+ const tNodeData = (0, core_1.__)(Node_1.default.findOne(nodeId));
87
+ const nodeData = await tNodeData;
86
88
  const tNodeOrigin = await (0, core_1.__)(Node_1.default.findOne({
87
89
  relations: ['action'],
88
90
  where: {
89
- flowId: flowId,
91
+ flowId: nodeData.flowId,
90
92
  isInit: 'Y',
91
93
  action: {
92
94
  originName: (0, typeorm_1.Not)((0, typeorm_1.IsNull)())
93
95
  }
94
96
  }
95
97
  }));
96
- const tNodeData = (0, core_1.__)(Node_1.default.findOne(nodeId));
97
98
  const tFieldMapData = (0, core_1.__)(manager.createQueryBuilder(FieldMap_1.default, 'fm')
98
99
  .innerJoin(OriginName_1.default, 'on', 'on.originNameId = fm.originNameId')
99
100
  .where("on.name = :n ", { n: tNodeOrigin.action.originName })
100
101
  .getMany());
101
102
  //const nodeOrigin = await tNodeOrigin; todo
102
- const nodeData = await tNodeData;
103
103
  const fieldMapData = await tFieldMapData;
104
104
  /*const [nodeData, fieldMapData] = await Promise.all([
105
105
  tNodeData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pxp-nd/flow",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "description": "Workflow module for pxp-nd framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",