2
0

fix(devices): fix prepareForGatewayRequest call for default nodes

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

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);
}
});