refactor/catalog

This commit is contained in:
Victor Radael
2022-10-11 15:35:29 -03:00
parent 28b4f3ac4b
commit e2bb119745
2 changed files with 0 additions and 20 deletions
-12
View File
@@ -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,
-8
View File
@@ -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);