feat(auth): add detailed logging in JwtAuthGuard and JwtStrategy for better debugging
feat(products): enhance logging in create method to track requests and user details
This commit is contained in:
@@ -127,8 +127,8 @@ export class ProductsController {
|
||||
|
||||
@Roles('admin')
|
||||
@Post()
|
||||
create(@Body() body: CreateProductDto) {
|
||||
return this.productsService.create(body);
|
||||
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);
|
||||
}
|
||||
|
||||
@Post('pending')
|
||||
|
||||
Reference in New Issue
Block a user