fix user service
This commit is contained in:
1 parent
f31ff994fe
commit
d81a4ef0ee
2 files changed
+3
-3
No files matched your search
@@ -464,10 +464,10 @@ class AuthController extends BaseController {
|
||||
}
|
||||
|
||||
const userId = req.params.userId;
|
||||
const updates = { ...req.body };
|
||||
await editUserByIdParamValidation.validateAsync(req.params);
|
||||
await editUserPasswordByIdBodyValidation.validateAsync(req.body);
|
||||
await this.userService.setPasswordByUserId(userId, updates);
|
||||
const updatedPassword = req.body.password;
|
||||
await this.userService.setPasswordByUserId(userId, updatedPassword);
|
||||
return res.success({ msg: "Password reset successfully" });
|
||||
},
|
||||
SERVICE_NAME,
|
||||
|
||||
Reference in new issue
Block a user