Join-reduce keep existing msg properties

see https://discourse.nodered.org/t/no-response-object-after-split-join/63919
This commit is contained in:
Dave Conway-Jones 2022-06-15 10:16:12 +01:00
parent 1af56a7f00
commit 6c0d6c5425
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
1 changed files with 4 additions and 2 deletions

View File

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