Skip to content

Commit 2483fac

Browse files
committed
search by id OR name for workflow in
1 parent 25bc500 commit 2483fac

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

OpenFlowNodeRED/src/nodered/nodes/workflow_nodes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class workflow_in_node {
8888

8989
}
9090

91-
var res = await NoderedUtil.Query("users", { "_type": "role", "workflowid": this.workflow._id }, null, null, 1, 0, null);
91+
var res = await NoderedUtil.Query("users", { "_type": "role", "$or": [{ "workflowid": this.workflow._id }, { "name": queue + "users" }] }, null, null, 1, 0, null);
9292
var role: Base = null;
9393
if (res.length == 0) {
9494
var who = WebSocketClient.instance.user;

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.472
1+
0.0.473

0 commit comments

Comments
 (0)