mirror of
https://github.com/lasthead0/yandex2mqtt.git
synced 2025-08-08 09:01:00 +03:00
test
This commit is contained in:
@@ -35,7 +35,7 @@ module.exports.devices = [
|
|||||||
};
|
};
|
||||||
|
|
||||||
for (const d of global.devices) {
|
for (const d of global.devices) {
|
||||||
if (Array.isArray(d.users) && d.users.indexOf(userId)) {
|
if (Array.isArray(d.allowedUsers) && d.allowedUsers.indexOf(userId)) {
|
||||||
console.log(d.getInfo());
|
console.log(d.getInfo());
|
||||||
r.payload.devices.push(d.getInfo());
|
r.payload.devices.push(d.getInfo());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user