diff --git a/src/nodeClass.js b/src/nodeClass.js index 4757683..21156b2 100644 --- a/src/nodeClass.js +++ b/src/nodeClass.js @@ -32,12 +32,13 @@ class nodeClass { this.node.on('input', (msg, send, done) => { switch (msg.topic) { - case 'registerChild': + case 'registerChild': { // Register this node as a parent of the child node const childId = msg.payload; - const childObj = this.RED.nodes.getNode(childId); + const childObj = this.RED.nodes.getNode(childId); this.source.childRegistrationUtils.registerChild(childObj.source, msg.positionVsParent); break; + } default: console.log("Unknown topic: " + msg.topic); }