1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

rtrigger node - reapply - passing topic through to output fix that seemed to only half merge

This commit is contained in:
Dave Conway-Jones 2020-04-06 22:58:00 +01:00
parent efad7270b7
commit 5eed4672ed
No known key found for this signature in database
GPG Key ID: 302A6725C594817F

View File

@ -107,9 +107,7 @@ module.exports = function(RED) {
}); });
} }
var npay;
this.on('input', function(msg) { this.on('input', function(msg) {
if (node.op2type === "payl") { npay = RED.util.cloneMessage(msg); }
processMessageQueue(msg); processMessageQueue(msg);
}); });
@ -199,8 +197,6 @@ module.exports = function(RED) {
node.send(msg2); node.send(msg2);
} }
delete node.topics[topic]; delete node.topics[topic];
if (node.op2type === "payl") { node.send(npay); }
else { node.send(msg2); }
node.status({}); node.status({});
}).catch(err => { }).catch(err => {
node.error(err); node.error(err);