mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
@@ -51,7 +51,7 @@ module.exports = function(RED) {
|
|||||||
|
|
||||||
this.on("input",function(msg) {
|
this.on("input",function(msg) {
|
||||||
try {
|
try {
|
||||||
msg = {topic:this.topic};
|
msg.topic = this.topic;
|
||||||
if ( (this.payloadType == null && this.payload === "") || this.payloadType === "date") {
|
if ( (this.payloadType == null && this.payload === "") || this.payloadType === "date") {
|
||||||
msg.payload = Date.now();
|
msg.payload = Date.now();
|
||||||
} else if (this.payloadType == null) {
|
} else if (this.payloadType == null) {
|
||||||
|
Reference in New Issue
Block a user