1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Debug activation message the wrong way around

As reported under #47
This commit is contained in:
Nicholas O'Leary 2013-11-19 15:50:38 +00:00
parent 620af84088
commit 2028880b48

View File

@ -110,10 +110,10 @@ RED.app.post("/debug/:id/:state", function(req,res) {
if (node != null) { if (node != null) {
if (state === "enable") { if (state === "enable") {
node.active = true; node.active = true;
res.send(201); res.send(200);
} else if (state === "disable") { } else if (state === "disable") {
node.active = false; node.active = false;
res.send(200); res.send(201);
} else { } else {
res.send(404); res.send(404);
} }