fix user service

This commit is contained in:
karenvicent committed 2025-10-06 15:15:56 -04:00
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;
};
}