mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Undo some formatting changes
This commit is contained in:
parent
50f7880791
commit
9ae7cde840
@ -208,12 +208,8 @@ module.exports = function (RED) {
|
|||||||
}, 60000); // trigger every 60 secs
|
}, 60000); // trigger every 60 secs
|
||||||
|
|
||||||
this.on("close", function () {
|
this.on("close", function () {
|
||||||
if (tock) {
|
if (tock) { clearTimeout(tock); }
|
||||||
clearTimeout(tock);
|
if (tick) { clearInterval(tick); }
|
||||||
}
|
|
||||||
if (tick) {
|
|
||||||
clearInterval(tick);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -221,9 +217,7 @@ module.exports = function (RED) {
|
|||||||
var node = RED.nodes.getNode(req.params.id);
|
var node = RED.nodes.getNode(req.params.id);
|
||||||
if (node != null) {
|
if (node != null) {
|
||||||
try {
|
try {
|
||||||
node.emit("input", {
|
node.emit("input", { payload: "reset" });
|
||||||
payload: "reset"
|
|
||||||
});
|
|
||||||
res.sendStatus(200);
|
res.sendStatus(200);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
res.sendStatus(500);
|
res.sendStatus(500);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user