This commit is contained in:
Evgenii Abramov
2021-03-30 21:41:28 +03:00
parent 736529aa4a
commit 2d56aa7eed

View File

@@ -36,7 +36,7 @@ module.exports.devices = [
for (const d of global.devices) {
const {allowedUsers} = d.meta;
if (Array.isArray(allowedUsers) && allowedUsers.indexOf(userId)) {
if (Array.isArray(allowedUsers) && allowedUsers.indexOf(userId) > -1) {
console.log(d.getInfo());
r.payload.devices.push(d.getInfo());
}