From 16a864f4197668ab74fd0483e2ab127d89111df8 Mon Sep 17 00:00:00 2001 From: Aschen Date: Tue, 23 Mar 2021 14:05:21 +0100 Subject: [PATCH] Remove multitenancy pipes --- lib/DeviceManagerPlugin.ts | 22 ---------------------- 1 file changed, 22 deletions(-) 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: {