diff --git a/lib/DeviceManagerPlugin.ts b/lib/DeviceManagerPlugin.ts index 1ceb9c5d..4ea35efe 100644 --- a/lib/DeviceManagerPlugin.ts +++ b/lib/DeviceManagerPlugin.ts @@ -94,28 +94,6 @@ export class DeviceManagerPlugin extends Plugin { } }; - this.pipes = { - 'multi-tenancy/tenant:afterCreate': async request => { - const { index: tenantIndex } = request.result; - - const { collections } = await this.engineService.create(tenantIndex); - - if (!Array.isArray(request.result.collections)) { - request.result.collections = []; - } - request.result.collections.push(...collections); - - return request; - }, - 'multi-tenancy/tenant:afterDelete': async request => { - const { index: tenantIndex } = request.result; - - await this.engineService.delete(tenantIndex); - - return request; - } - }; - this.defaultConfig = { adminIndex: 'device-manager', adminCollections: {