Docker compose con variabili d'ambiente
This commit is contained in:
@@ -7,7 +7,7 @@ class UsersController {
|
||||
|
||||
async getCurrentUser(req, res, next) {
|
||||
try {
|
||||
const user = await this.usersService.getUserById(req.userId);
|
||||
const user = await this.usersService.getCurrentUserWithRank(req.userId);
|
||||
return ResponseHandler.success(res, user, 'User retrieved successfully');
|
||||
} catch (error) {
|
||||
next(error);
|
||||
|
||||
Reference in New Issue
Block a user