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:
parent
efad7270b7
commit
5eed4672ed
@ -107,9 +107,7 @@ module.exports = function(RED) {
|
||||
});
|
||||
}
|
||||
|
||||
var npay;
|
||||
this.on('input', function(msg) {
|
||||
if (node.op2type === "payl") { npay = RED.util.cloneMessage(msg); }
|
||||
processMessageQueue(msg);
|
||||
});
|
||||
|
||||
@ -199,8 +197,6 @@ module.exports = function(RED) {
|
||||
node.send(msg2);
|
||||
}
|
||||
delete node.topics[topic];
|
||||
if (node.op2type === "payl") { node.send(npay); }
|
||||
else { node.send(msg2); }
|
||||
node.status({});
|
||||
}).catch(err => {
|
||||
node.error(err);
|
||||
|
Loading…
Reference in New Issue
Block a user