From 8d89b747b498e2574f5788caf2b1c5905f5471a3 Mon Sep 17 00:00:00 2001 From: "rodrigo.zamboni" Date: Wed, 4 May 2022 00:24:44 -0300 Subject: [PATCH] FIX: Fix delete routes method --- src/modules/catalog/catalog.service.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/catalog/catalog.service.ts b/src/modules/catalog/catalog.service.ts index 0fc5a28..f8978e9 100644 --- a/src/modules/catalog/catalog.service.ts +++ b/src/modules/catalog/catalog.service.ts @@ -136,7 +136,7 @@ class CatalogService { ? `https://nimbus-${body.info.customer.toLowerCase()}.dadosfera.ai` : `${process.env.NIMBUS_BASE_URL}${customer}.${process.env.ENV}.dadosfera`; - const { data } = await axios.get( + const { data } = await axios.delete( `${nimbusUrl}/api/catalog/table-metadata/${id}`, ); return data; @@ -171,7 +171,7 @@ class CatalogService { ? `https://nimbus-${body.info.customer.toLowerCase()}.dadosfera.ai` : `${process.env.NIMBUS_BASE_URL}${customer}.${process.env.ENV}.dadosfera`; - const { data } = await axios.get( + const { data } = await axios.delete( `${nimbusUrl}/api/catalog/column-metadata/${id}/`, ); return data; @@ -454,7 +454,7 @@ class CatalogService { ? `https://nimbus-${body.info.customer.toLowerCase()}.dadosfera.ai` : `${process.env.NIMBUS_BASE_URL}${customer}.${process.env.ENV}.dadosfera`; - const { data } = await axios.get(`${nimbusUrl}/api/catalog/tags/${id}`); + const { data } = await axios.delete(`${nimbusUrl}/api/catalog/tags/${id}`); return data; } @@ -487,7 +487,7 @@ class CatalogService { ? `https://nimbus-${body.info.customer.toLowerCase()}.dadosfera.ai` : `${process.env.NIMBUS_BASE_URL}${customer}.${process.env.ENV}.dadosfera`; - const { data } = await axios.get( + const { data } = await axios.delete( `${nimbusUrl}/api/catalog/table-tags/${id}`, ); return data; @@ -522,7 +522,7 @@ class CatalogService { ? `https://nimbus-${body.info.customer.toLowerCase()}.dadosfera.ai` : `${process.env.NIMBUS_BASE_URL}${customer}.${process.env.ENV}.dadosfera`; - const { data } = await axios.get( + const { data } = await axios.delete( `${nimbusUrl}/api/catalog/table-rules/${id}`, ); return data;