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 (state === "enable") {
node.active = true;
res.send(201);
res.send(200);
} else if (state === "disable") {
node.active = false;
res.send(200);
res.send(201);
} else {
res.send(404);
}