diff --git a/backend/src/products/products.controller.ts b/backend/src/products/products.controller.ts index fd9f950b..a3a97570 100644 --- a/backend/src/products/products.controller.ts +++ b/backend/src/products/products.controller.ts @@ -128,7 +128,10 @@ export class ProductsController { @Roles('admin') @Post() create(@Body() body: CreateProductDto, @Request() req: any) { - console.log('[ProductsController.create] Request received');\n console.log('[ProductsController.create] User:', req.user);\n console.log('[ProductsController.create] Body:', body);\n return this.productsService.create(body); + console.log('[ProductsController.create] Request received'); + console.log('[ProductsController.create] User:', req.user); + console.log('[ProductsController.create] Body:', body); + return this.productsService.create(body); } @Post('pending')