From a8e13c01d26d5c3b8bb6e5489d895349b7a8c56a Mon Sep 17 00:00:00 2001 From: "rodrigo.zamboni" Date: Mon, 19 Sep 2022 15:06:16 -0300 Subject: [PATCH] FIX: passing params with query params --- src/modules/catalog/catalog.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/catalog/catalog.controller.ts b/src/modules/catalog/catalog.controller.ts index 54dec17..913ac57 100644 --- a/src/modules/catalog/catalog.controller.ts +++ b/src/modules/catalog/catalog.controller.ts @@ -48,7 +48,7 @@ export class CatalogController { } @Get('all') - async catalogAll(@Body() body) { + async catalogAll(@Body() body, @Query() params) { const { user_id, customer, customer_id } = body.info; this.logger.info(`/catalog - ON CATALOG ALL ROUTE`, { user: body.info.user_id, @@ -62,7 +62,7 @@ export class CatalogController { }); const res = await this.catalogService.getAllOpenSearchDataAssets( - body, + params, metadata, );