FIX: set route params type

This commit is contained in:
Gabriel Amorim
2023-03-16 17:45:03 -03:00
parent 6fd277ef3a
commit 7b0d4dd5bc
8 changed files with 290 additions and 34 deletions
+1 -2
View File
@@ -123,8 +123,7 @@ export class InputsController {
}
@Get('/:id')
async findOne(@Body() body, @Param() params) {
const { id } = params;
async findOne(@Body() body, @Param('id') id: string) {
this.logger.info(`/input/${id} - ON FIND ONE ROUTE`, {
user: body.info.user_id,
customer: body.info.customer,