@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.
- package/dist/controllers/Flow.js +11 -11
- package/dist/entity/Flow.js +1 -1
- package/package.json +1 -1
package/dist/controllers/Flow.js
CHANGED
|
@@ -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
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
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
|
}
|
package/dist/entity/Flow.js
CHANGED
|
@@ -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([
|