@pxp-nd/flow 1.0.37 → 1.0.38

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.
@@ -284,17 +284,17 @@ let Flow = class Flow extends core_1.Controller {
284
284
  if (nodeId != 'new') {
285
285
  id = parseInt(nodeId.split("-")[1]);
286
286
  taskIds.push(id);
287
- }
288
- const connectionsToDel = await manager.find(NodeConnection_1.default, {
289
- where: { nodeIdChild: id }
290
- });
291
- if (connectionsToDel) {
292
- //console.log("hay para eliminar---->", connectionsToDel);
293
- const originalNodeCIds = connectionsToDel.map((node) => node.nodeConnectionId);
294
- //console.log("eliminando: ", originalNodeCIds);
295
- let flowNodeC = await typeorm_1.getManager().query(`DELETE
296
- from twf_node_connection
297
- WHERE node_connection_id = ${originalNodeCIds}`);
287
+ const connectionsToDel = await manager.find(NodeConnection_1.default, {
288
+ where: { nodeIdChild: id }
289
+ });
290
+ if (connectionsToDel) {
291
+ //console.log("hay para eliminar---->", connectionsToDel);
292
+ const originalNodeCIds = connectionsToDel.map((node) => node.nodeConnectionId);
293
+ //console.log("eliminando: ", originalNodeCIds);
294
+ let flowNodeC = await typeorm_1.getManager().query(`DELETE
295
+ from twf_node_connection
296
+ WHERE node_connection_id = ${originalNodeCIds}`);
297
+ }
298
298
  }
299
299
  }
300
300
  }
@@ -51,7 +51,7 @@ __decorate([
51
51
  __metadata("design:type", Array)
52
52
  ], Flow.prototype, "instances", void 0);
53
53
  __decorate([
54
- typeorm_1.OneToMany(() => Node_1.default, node => node.flow),
54
+ typeorm_1.OneToMany(() => Node_1.default, node => node.flow, { eager: true }),
55
55
  __metadata("design:type", Array)
56
56
  ], Flow.prototype, "nodes", void 0);
57
57
  Flow = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pxp-nd/flow",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "Workflow module for pxp-nd framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",