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
@@ -93,12 +93,11 @@ export class OutputsController {
async update(@Payload() updateOutputDto, @Param() params) {
const { id } = params;
const { info } = updateOutputDto;
delete updateOutputDto.info;
this.logger.info(process.env.DEV_URL + `/output/${id} - ON UPDATE ROUTE`, {
user: updateOutputDto.info.user_id,
customer: updateOutputDto.info.customer,
});
delete updateOutputDto.info;
const outputService = new OutputsService(this.outputsClientService);
const response = await outputService.update(id, updateOutputDto, info);