mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Emoncms - drop time if not a number
and update docs.
This commit is contained in:
@@ -59,7 +59,7 @@ module.exports = function(RED) {
|
||||
this.url += '&node=' + nodegroup;
|
||||
}
|
||||
if (typeof msg.time !== 'undefined') {
|
||||
this.url += '&time=' + msg.time;
|
||||
if (!isNaN(parseInt(msg.time))) { this.url += '&time=' + msg.time; }
|
||||
}
|
||||
http.get(this.url, function(res) {
|
||||
msg.rc = res.statusCode;
|
||||
|
Reference in New Issue
Block a user