fix(devices): fix prepareForGatewayRequest call for default nodes
This commit is contained in:
@@ -91,13 +91,13 @@ module.exports = {
|
||||
// Input from gateway
|
||||
if (payload.sid) {
|
||||
if (payload.sid == node.sid) {
|
||||
miDevicesUtils.setStatus(node, payload.data);
|
||||
this.setStatus(node, payload.data);
|
||||
node.send([msg]);
|
||||
}
|
||||
}
|
||||
// Prepare for request
|
||||
else {
|
||||
miDevicesUtils.prepareForGatewayRequest(node, msg);
|
||||
this.prepareForGatewayRequest(node, msg);
|
||||
node.send(msg);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user