mirror of https://github.com/node-red/node-red.git
parent
82f289c42e
commit
682345da22
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue