Skip to content

Commit 05b9fe7

Browse files
committed
add tuser to msg
1 parent 48be0cc commit 05b9fe7

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

OpenFlowNodeRED/src/nodered/nodes/rpa_nodes.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ export class rpa_workflow_node {
123123

124124
if (data.payload.command == "invokecompleted") {
125125
result.payload = data.payload.data;
126+
if (data.user != null) result.user = data.user;
126127
if (result.payload == null || result.payload == undefined) { result.payload = {}; }
127128
this.node.status({ fill: "green", shape: "dot", text: data.payload.command });
128129
console.log("********************");
@@ -132,12 +133,14 @@ export class rpa_workflow_node {
132133
}
133134
else if (data.payload.command == "invokefailed" || data.payload.command == "invokeaborted" || data.payload.command == "error") {
134135
result.payload = data.payload;
136+
if (data.user != null) result.user = data.user;
135137
if (result.payload == null || result.payload == undefined) { result.payload = {}; }
136138
this.node.status({ fill: "red", shape: "dot", text: data.payload.command });
137139
this.node.send([null, null, result]);
138140
}
139141
else {
140142
result.payload = data.payload;
143+
if (data.user != null) result.user = data.user;
141144
if (result.payload == null || result.payload == undefined) { result.payload = {}; }
142145
this.node.send([null, result]);
143146
}

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.423
1+
0.0.424

0 commit comments

Comments
 (0)