From e2bb11974554fceb2e8c9e0aa815c1e700d76028 Mon Sep 17 00:00:00 2001 From: Victor Radael Date: Tue, 11 Oct 2022 15:35:29 -0300 Subject: [PATCH] refactor/catalog --- src/modules/catalog/catalog.controller.ts | 12 ------------ src/modules/catalog/catalog.service.ts | 8 -------- 2 files changed, 20 deletions(-) diff --git a/src/modules/catalog/catalog.controller.ts b/src/modules/catalog/catalog.controller.ts index a07abb1..959883f 100644 --- a/src/modules/catalog/catalog.controller.ts +++ b/src/modules/catalog/catalog.controller.ts @@ -155,18 +155,6 @@ export class CatalogController { return res; } - @Get('dashboard-metabase') - async getAllDashboardMetabase(@Body() body) { - this.logger.info(`/catalog - ON GET ALL DASHBOARDS METABASE ROUTE`, { - user: body.info.user_id, - customer: body.info.customer, - }); - - const res = await this.catalogService.getAllDashboardMetabase(body); - - return res; - } - @Get('dashboard-metabase/:id') async getOneDashboardMetabase( @Body() body, diff --git a/src/modules/catalog/catalog.service.ts b/src/modules/catalog/catalog.service.ts index 55a5e12..eee05d0 100644 --- a/src/modules/catalog/catalog.service.ts +++ b/src/modules/catalog/catalog.service.ts @@ -103,14 +103,6 @@ class CatalogService implements OnModuleInit { return data; } - async getAllDashboardMetabase(body) { - const nimbusUrl = this._getNimbusUrl(body); - const { data } = await axios.get( - `${nimbusUrl}/api/catalog/dashboard-metabase/`, - ); - return data; - } - async getUserRolesIds(userId: string) { const result = await this.userService.findOneById(userId).catch(() => null);