fix(devices): fix prepareForGatewayRequest call for default nodes

This commit is contained in:
Pierre CLEMENT committed 2018-01-04 09:11:33 +01:00
1 parent 993cab4ced
commit f3ff14012c
6 files changed
+218 -214

No files matched your search

+2 -2
View File
@@ -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);
}
});