Skip to content

Commit 3a304a5

Browse files
authored
Release 0.4.8: Use packaged kuzzle plugin commons (#142)
Use the packaged and fixed version of kuzzle-plugin-commons to avoid unwanted breaking changes
1 parent 41582f8 commit 3a304a5

File tree

4 files changed

+930
-493
lines changed

4 files changed

+930
-493
lines changed

lib/DeviceManagerPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class DeviceManagerPlugin extends Plugin {
8080

8181
private assetController: AssetController;
8282
private deviceController: DeviceController;
83-
private engineController: EngineController;
83+
private engineController: EngineController<DeviceManagerPlugin>;
8484

8585
private payloadService: PayloadService;
8686
private deviceManagerEngine: DeviceManagerEngine;

lib/core-classes/DeviceManagerEngine.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
import { Plugin } from 'kuzzle';
22
import { AbstractEngine } from 'kuzzle-plugin-commons';
33

4-
import { DeviceManagerConfig } from '../DeviceManagerPlugin';
4+
import { DeviceManagerConfig, DeviceManagerPlugin } from '../DeviceManagerPlugin';
55
import { catalogMappings } from '../models';
66
import { AssetMappingsManager } from './CustomMappings/AssetMappingsManager';
77
import { DeviceMappingsManager } from './CustomMappings/DeviceMappingsManager';
88

9-
export class DeviceManagerEngine extends AbstractEngine {
9+
export class DeviceManagerEngine extends AbstractEngine<DeviceManagerPlugin> {
1010
public config: DeviceManagerConfig;
1111

1212
private assetMappings: AssetMappingsManager;
1313
private deviceMappings: DeviceMappingsManager;
1414

1515
constructor (plugin: Plugin, assetMappings: AssetMappingsManager, deviceMappings: DeviceMappingsManager) {
16-
super('device-manager', plugin);
16+
super(
17+
'device-manager',
18+
plugin,
19+
plugin.config.adminIndex,
20+
plugin.config.configCollection);
1721

1822
this.assetMappings = assetMappings;
1923
this.deviceMappings = deviceMappings;

0 commit comments

Comments
 (0)