Skip to content

Commit 80d9b47

Browse files
committed
add targetid to auto created
1 parent 18c107a commit 80d9b47

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

OpenFlowNodeRED/src/nodered/nodes/workflow_nodes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ export class workflow_in_node {
178178
if (!NoderedUtil.IsNullUndefinded(Config.queue_prefix)) {
179179
queue = Config.queue_prefix + this.config.queue;
180180
}
181-
181+
var who = WebSocketClient.instance.user;
182182
var res2 = await NoderedUtil.InsertOne("workflow_instances",
183-
{ _type: "instance", "queue": queue, "name": this.workflow.name, payload: data.payload, workflow: this.workflow._id }, 1, true, data.jwt);
183+
{ _type: "instance", "queue": queue, "name": this.workflow.name, payload: data.payload, workflow: this.workflow._id, targetid: who._id }, 1, true, data.jwt);
184184

185185
// Logger.instanse.info("workflow in activated creating a new workflow instance with id " + res2._id);
186186
// OpenFlow Controller.ts needs the id, when creating a new intance !

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.492
1+
0.0.493

0 commit comments

Comments
 (0)