mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-18 16:49:07 +00:00
Update feature
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user