FIX: getting query params on find all pipelines

This commit is contained in:
Gabriel Rosa
2022-09-08 17:59:15 -03:00
parent 25cf13923b
commit 4660751023
2 changed files with 5 additions and 5 deletions
@@ -8,6 +8,7 @@ import {
Post,
Put,
Headers,
Query,
} from '@nestjs/common';
import { ApiCreatedResponse, ApiTags } from '@nestjs/swagger';
import { AuthenticateCondition } from 'src/authentication/authentication.decorator';
@@ -83,13 +84,12 @@ export class PipelinesController {
async findAll(
@User() user: RequestUser,
@Headers('Dadosfera-Lang') language,
@Body() data,
@Query() data,
) {
this.logger.info(process.env.DEV_URL + `/pipeline ON Find All ROUTE`, {
user: data.info.user_id,
customer: data.info.customer,
user: user.user_id,
customer: user.customer_name,
});
if (!language) language = 'en-us';
if (!language) language = 'en-us';