kuzzle-device-manager 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.
|
@@ -172,7 +172,7 @@ class PayloadService {
|
|
|
172
172
|
const measureTypes = Object.keys(measures);
|
|
173
173
|
const asset = await this.batchController.get(tenantId, 'assets', assetId);
|
|
174
174
|
asset._source.measures = lodash_1.default.merge(asset._source.measures, measures);
|
|
175
|
-
const { result } = await global.app.trigger(`
|
|
175
|
+
const { result } = await global.app.trigger(`engine:${tenantId}:asset:measures:new`, (0, utils_1.eventPayload)({ asset, measureTypes }));
|
|
176
176
|
const assetDocument = await this.batchController.update(tenantId, 'assets', assetId, result.asset._source, { source: true, retryOnConflict: 10 });
|
|
177
177
|
return new models_1.BaseAsset(assetDocument._source, assetDocument._id);
|
|
178
178
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kuzzle-device-manager",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.10",
|
|
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": {
|