mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
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
Block a user