fix user service
This commit is contained in:
1 parent
f31ff994fe
commit
d81a4ef0ee
2 files changed
+3
-3
No files matched your search
@@ -212,7 +212,7 @@ class UserService {
|
||||
await this.db.userModule.editUserById(userId, user);
|
||||
};
|
||||
setPasswordByUserId = async (userId, updates) => {
|
||||
const updatedUser = await this.db.userModule.updateUser({ userId: userId, user: updates, file: null });
|
||||
const updatedUser = await this.db.userModule.updateUser({ userId: userId, user: { password: updates }, file: null });
|
||||
return updatedUser;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user