diff --git a/red/nodes/Node.js b/red/nodes/Node.js index 49bc3de90..38489b204 100644 --- a/red/nodes/Node.js +++ b/red/nodes/Node.js @@ -96,8 +96,8 @@ Node.prototype.send = function(msg) { // A single message and a single wire on output 0 // TODO: pre-load flows.get calls - cannot do in constructor // as not all nodes are defined at that point - if (!msg._id) { - msg._id = constructUniqueIdentifier(); + if (!msg._msgid) { + msg._msgid = constructUniqueIdentifier(); } this.metric("send",msg); node = flows.get(this._wire); @@ -136,7 +136,7 @@ Node.prototype.send = function(msg) { for (k = 0; k < msgs.length; k++) { var m = msgs[k]; if (!sentMessageId) { - sentMessageId = m._id; + sentMessageId = m._msgid; } if (msgSent) { var clonedmsg = redUtil.cloneMessage(m); @@ -154,12 +154,12 @@ Node.prototype.send = function(msg) { if (!sentMessageId) { sentMessageId = constructUniqueIdentifier(); } - this.metric("send",{_id:sentMessageId}); + this.metric("send",{_msgid:sentMessageId}); for (i=0;i