Join-reduce keep existing msg properties

see https://discourse.nodered.org/t/no-response-object-after-split-join/63919
This commit is contained in:
Steve-Mcl 2022-08-04 09:39:43 +01:00
parent 5c5855751c
commit 2d7a068644

View File

@ -314,11 +314,13 @@ module.exports = function(RED) {
if (err) {
return done(err);
}
msgInfo.send({payload: result});
msgInfo.msg.payload = result;
msgInfo.send(msgInfo.msg);
done();
});
} else {
msgInfo.send({payload: result});
msgInfo.msg.payload = result;
msgInfo.send(msgInfo.msg);
done();
}
} else {