@iobroker/socket-classes 0.4.9 → 0.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/lib/socketCommands.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/socketCommands.js
CHANGED
|
@@ -885,9 +885,9 @@ class SocketCommands {
|
|
|
885
885
|
this.commands['getAdapterInstances'] = (socket, adapterName, callback) => {
|
|
886
886
|
if (typeof callback === 'function') {
|
|
887
887
|
if (this._checkPermissions(socket, 'getObject', callback)) {
|
|
888
|
-
let _adapterName = adapterName
|
|
888
|
+
let _adapterName = adapterName !== undefined && adapterName !== null ? adapterName : this.adapterName || '';
|
|
889
889
|
if (_adapterName) {
|
|
890
|
-
_adapterName += '.'
|
|
890
|
+
_adapterName += '.';
|
|
891
891
|
}
|
|
892
892
|
this.adapter.getObjectView('system', 'instance',
|
|
893
893
|
{startkey: `system.adapter.${_adapterName}`, endkey: `system.adapter.${_adapterName}\u9999`},
|