FIX: delete info field before using it

This commit is contained in:
rodrigo.zamboni
2022-07-06 11:06:52 -03:00
parent e5bf5b23e7
commit 02955b99fe
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -162,12 +162,11 @@ export class InputsController {
async update(@Body() updateInputDto: UpdateInputRequest, @Param() params) {
const { id } = params;
const { info } = updateInputDto;
delete updateInputDto.info;
this.logger.info(`/input/${id} - ON UPDATE ROUTE`, {
user: updateInputDto.info.user_id,
customer: updateInputDto.info.costumer_id,
});
delete updateInputDto.info;
const response = await this.inputService.update(id, updateInputDto, info);