kuzzle-device-manager 0.4.11 → 0.4.12

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.
@@ -158,7 +158,7 @@ class DeviceManagerPlugin extends kuzzle_1.Plugin {
158
158
  await this.sdk.index.create(this.config.adminIndex);
159
159
  }
160
160
  catch (error) {
161
- if (error.id !== 'services.storage.index_already_exists') {
161
+ if (!error.message.includes('already exists')) {
162
162
  throw error;
163
163
  }
164
164
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kuzzle-device-manager",
3
- "version": "0.4.11",
3
+ "version": "0.4.12",
4
4
  "description": "Manage your IoT devices and assets. Choose a provisionning strategy, receive and decode payload, handle your IoT business logic.",
5
5
  "author": "The Kuzzle Team (support@kuzzle.io)",
6
6
  "repository": {