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
@@ -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,