From 449a1abb63926dca0222463bf4b8612b5a532c97 Mon Sep 17 00:00:00 2001 From: Anderson Feitosa Date: Fri, 25 Nov 2022 12:11:51 -0300 Subject: [PATCH] FEAT: update auth guard to patch method --- docsfera.json | 2 +- src/modules/pipelinesV2/pipelines.controller.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docsfera.json b/docsfera.json index a621697..c2c7460 100644 --- a/docsfera.json +++ b/docsfera.json @@ -3237,7 +3237,7 @@ "info": { "title": "Maestro - feature/update-pipeline-cron", "description": "Documentation for Maestro gateway", - "version": "25.11.2022 - 11:37", + "version": "25.11.2022 - 12:7", "contact": {} }, "tags": [], diff --git a/src/modules/pipelinesV2/pipelines.controller.ts b/src/modules/pipelinesV2/pipelines.controller.ts index f729658..c2d828a 100644 --- a/src/modules/pipelinesV2/pipelines.controller.ts +++ b/src/modules/pipelinesV2/pipelines.controller.ts @@ -46,6 +46,10 @@ import { GrpcToHttpExceptionFilter } from 'src/error/grpc-to-http-exception.filt action = 'UPDATE'; break; + case 'PATCH': + action = 'UPDATE'; + break; + default: action = req.method; } @@ -209,7 +213,7 @@ export class PipelinesController { return response; } - @Patch(':id') + @Patch('/:id') async updateByPatch( @Headers('Dadosfera-Lang') language, @Body() updatePipelineDto,