diff --git a/nodejs/models/rcdb.js b/nodejs/models/rcdb.js index 17cf313..5b28bbc 100644 --- a/nodejs/models/rcdb.js +++ b/nodejs/models/rcdb.js @@ -35,8 +35,7 @@ RC.prototype.add = function(rc, callback) { } RC.prototype.change = function(rc, callback) { - // var rc = {tristate:bool, on_value:"FF00...", off_value:"FF00...", name:"Switch name"}; - console.log(rc); + // var rc = {tristate:bool, on_value:"FF00...", off_value:"FF00...", name:"Switch name", switch_id:"1"}; connection.query('UPDATE rc_switches SET ? WHERE `switch_id` = ?', [rc, rc.switch_id], callback); }