dt-common-device 13.9.1 → 13.9.2

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.
@@ -316,7 +316,9 @@ let AdminService = (() => {
316
316
  }
317
317
  async propertyHasSaltoConnection(propertyId) {
318
318
  const connections = await typedi_1.default.get(connection_1.LocalConnectionService).getConnectionsByPropertyId(propertyId);
319
- return connections.every((connection) => connection.connectionProvider === connection_1.ConnectionProvider.SaltoKS ||
319
+ // using 'some' to check, because property may have TV, Thermostats connections as well,
320
+ // In that case 'every' will return false and that breaks the SaltoKS check implementation
321
+ return connections.some((connection) => connection.connectionProvider === connection_1.ConnectionProvider.SaltoKS ||
320
322
  connection.connectionProvider === connection_1.ConnectionProvider.SaltoSpace);
321
323
  }
322
324
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-common-device",
3
- "version": "13.9.1",
3
+ "version": "13.9.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [