Inject node should reuse the message it is triggered with

Closes #914
This commit is contained in:
Nick O'Leary 2016-06-25 21:44:10 +01:00
parent 82f289c42e
commit 682345da22
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ module.exports = function(RED) {
this.on("input",function(msg) {
try {
msg = {topic:this.topic};
msg.topic = this.topic;
if ( (this.payloadType == null && this.payload === "") || this.payloadType === "date") {
msg.payload = Date.now();
} else if (this.payloadType == null) {