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