fix default 'allowedUsers' option

This commit is contained in:
Evgenii Abramov
2021-05-23 18:27:49 +03:00
parent 38c51ef047
commit acf78097e9

View File

@@ -43,7 +43,7 @@ class Device {
properties: (options.properties || []).map(p => Object.assign({}, p, {state: (p.state == undefined) ? this.initState(p) : p.state})),
};
this.meta = {
allowedUsers: options.allowedUsers || [1],
allowedUsers: options.allowedUsers || ['1'],
};
}