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