Update feature

This commit is contained in:
Victor Radael
2022-08-12 10:38:20 -03:00
parent 7c5cf3f541
commit acd4dafc57
12 changed files with 229 additions and 177 deletions
+7 -4
View File
@@ -25,6 +25,7 @@ import {
TestConnectionReq,
TestConnectionRes,
} from './dtos/input.model';
import { User } from 'src/authentication/user.decorator';
@ApiTags('inputs')
@Controller('inputs')
@@ -134,13 +135,15 @@ export class InputsController {
}
@Get()
async findAll(@Body() body) {
async findAll(@User() user, @Body() body) {
this.logger.info(`/input - ON FIND ALL ROUTE`, {
user: body.info.user_id,
customer: body.info.customer,
user: user.user_id,
customer: user.customer_id,
});
const response = await this.inputService.findAll(body);
const response = await this.inputService.findAll({
info: { user: user.user_id, customer: user.customer_id },
});
return response;
}