mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-04 23:09:08 +00:00
FIX: delete info field before using it
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user