@5minds/node-red-contrib-processcube
Advanced tools
Comparing version 1.5.10-feature-3c16da-m4mjc6ms to 1.5.10-feature-56c707-m4mkrxn5
{ | ||
"name": "@5minds/node-red-contrib-processcube", | ||
"version": "1.5.10-feature-3c16da-m4mjc6ms", | ||
"version": "1.5.10-feature-56c707-m4mkrxn5", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Node-RED nodes for ProcessCube", |
@@ -42,10 +42,21 @@ const engine_client = require('@5minds/processcube_engine_client'); | ||
node.log("luis777") | ||
node.engineClient = new engine_client.EngineClient(node.url, { | ||
clientId: node.credentials.clientId, | ||
clientSecret: node.credentials.clientSecret, | ||
scope: 'engine_etw engine_read engine_write' | ||
}); | ||
try { | ||
node.engineClient = new engine_client.EngineClient(node.url, { | ||
clientId: node.credentials.clientId, | ||
clientSecret: node.credentials.clientSecret, | ||
scope: 'engine_etw engine_read engine_write' | ||
}); | ||
node.log("luis7777") | ||
}catch (e) { | ||
node.error(JSON.stringify(e)) | ||
} | ||
} else { | ||
node.log("luis999") | ||
node.engineClient = new engine_client.EngineClient(node.url); | ||
try { | ||
node.log("luis999") | ||
node.engineClient = new engine_client.EngineClient(node.url); | ||
} catch(e) { | ||
node.error(JSON.stringify(e)) | ||
} | ||
} | ||
@@ -52,0 +63,0 @@ |
522065
10051