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,