@5minds/node-red-contrib-processcube 0.13.0-feature-f7cd16-lyfhy1jh → 0.13.0-feature-d922c8-lyfip0sz

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "0.13.0-feature-f7cd16-lyfhy1jh",
3
+ "version": "0.13.0-feature-d922c8-lyfip0sz",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "authors": [
@@ -25,7 +25,12 @@ module.exports = function (RED) {
25
25
  let subscription = null;
26
26
 
27
27
  node.on('input', async function (msg) {
28
- currentIdentity = node.server.identity;
28
+ if (node.server) {
29
+ currentIdentity = node.server.identity;
30
+ } else {
31
+ node.error("No processcube_config node found.")
32
+ return;
33
+ }
29
34
 
30
35
  const query = RED.util.evaluateNodeProperty(config.query, config.query_type, node, msg);
31
36