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