Fix variable naming error
This commit is contained in:
parent
c28e99efee
commit
4131332964
|
@ -75,7 +75,7 @@
|
|||
});
|
||||
this.server.all("/robots/:robot/devices/:device/commands/:commandname", function(req, res) {
|
||||
var commandname, devicename, key, params, robotname, value, _ref;
|
||||
params = [req.params.robotname, req.params.devicename, req.params.commandname];
|
||||
params = [req.params.robot, req.params.device, req.params.commandname];
|
||||
robotname = params[0], devicename = params[1], commandname = params[2];
|
||||
params = [];
|
||||
if (typeof req.body === 'object') {
|
||||
|
|
|
@ -166,8 +166,8 @@ and returns the result.
|
|||
@server.all "/robots/:robot/devices/:device/commands/:commandname", (req, res) ->
|
||||
|
||||
params = [
|
||||
req.params.robotname,
|
||||
req.params.devicename,
|
||||
req.params.robot,
|
||||
req.params.device,
|
||||
req.params.commandname
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue