FEAT: update auth guard to patch method

This commit is contained in:
Anderson Feitosa
2022-11-25 12:11:51 -03:00
parent 04ca17a69d
commit 449a1abb63
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -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": [],
@@ -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,