From 22f493d48ad6e3576665fce147a758631697f5e7 Mon Sep 17 00:00:00 2001 From: "rodrigo.zamboni" Date: Thu, 28 Apr 2022 12:12:37 -0300 Subject: [PATCH] FIX: fixing missing id on delete routes --- src/modules/catalog/catalog.controller.ts | 14 +++++++------- src/modules/catalog/catalog.service.ts | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/modules/catalog/catalog.controller.ts b/src/modules/catalog/catalog.controller.ts index 003117f..a0d4cff 100644 --- a/src/modules/catalog/catalog.controller.ts +++ b/src/modules/catalog/catalog.controller.ts @@ -33,7 +33,7 @@ export class CatalogController { const { id } = params; const catalogService = new CatalogService(); - const res = await catalogService.dataAppsOne(body, id); + const res = await catalogService.dataAppsOne(id, body); return res; } @@ -56,7 +56,7 @@ export class CatalogController { const catalogService = new CatalogService(); - const res = await catalogService.getOneDashboardMetabase(body, id); + const res = await catalogService.getOneDashboardMetabase(id, body); return res; } @@ -79,7 +79,7 @@ export class CatalogController { const catalogService = new CatalogService(); - const res = await catalogService.deleteOneTableMetadata(body, id); + const res = await catalogService.deleteOneTableMetadata(id, body); return res; } @@ -102,7 +102,7 @@ export class CatalogController { const catalogService = new CatalogService(); - const res = await catalogService.deleteOneColumnMetadata(body, id); + const res = await catalogService.deleteOneColumnMetadata(id, body); return res; } @@ -225,7 +225,7 @@ export class CatalogController { const catalogService = new CatalogService(); - const res = await catalogService.deleteTags(body, id); + const res = await catalogService.deleteTags(id, body); return res; } @@ -259,7 +259,7 @@ export class CatalogController { const catalogService = new CatalogService(); - const res = await catalogService.deleteTableTags(body, id); + const res = await catalogService.deleteTableTags(id, body); return res; } @@ -282,7 +282,7 @@ export class CatalogController { const catalogService = new CatalogService(); - const res = await catalogService.deleteTableRules(body, id); + const res = await catalogService.deleteTableRules(id, body); return res; } diff --git a/src/modules/catalog/catalog.service.ts b/src/modules/catalog/catalog.service.ts index d6b2bad..c91305b 100644 --- a/src/modules/catalog/catalog.service.ts +++ b/src/modules/catalog/catalog.service.ts @@ -51,7 +51,7 @@ class CatalogService { return data; } - async getOneDashboardMetabase(body, id) { + async getOneDashboardMetabase(id, body) { const customer = body.info.customer.toLowerCase() === 'dadosfera' ? ``