@5minds/node-red-contrib-processcube 1.7.4-feature-5965fd-m6ksznqa → 1.7.4-feature-a7b5bb-m6kzn6vh
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/package.json
CHANGED
package/wait-for-usertask.js
CHANGED
@@ -4,14 +4,14 @@ module.exports = function (RED) {
|
|
4
4
|
var node = this;
|
5
5
|
|
6
6
|
node.engine = RED.nodes.getNode(config.engine);
|
7
|
-
const isUser = !!msg._client?.user
|
8
|
-
const userIdentity = isUser ? { userId: msg._client.user.id, token: msg._client.user.accessToken } : null;
|
9
7
|
|
10
8
|
let subscription = null;
|
11
9
|
let subscribe = null;
|
12
10
|
|
13
11
|
node.on('input', async function (msg) {
|
14
12
|
const client = node.engine.engineClient;
|
13
|
+
const isUser = !!msg._client?.user
|
14
|
+
const userIdentity = isUser ? { userId: msg._client.user.id, token: msg._client.user.accessToken } : null;
|
15
15
|
subscribe = async () => {
|
16
16
|
if (!client) {
|
17
17
|
node.error('No engine configured.', msg);
|