wisdom #2

Merged
yogiedigital merged 126 commits from wisdom into main 2025-10-20 03:26:33 +00:00
Showing only changes of commit 7e05fc589b - Show all commits

View File

@@ -144,7 +144,8 @@ class UserService {
const userExist = await getUserByIdDb(id);
if (!userExist) throw new ErrorHandler(404, 'User not found');
const result = await changeUserPasswordDb(id, newPassword);
const hashedPassword = await hashPassword(newPassword);
const result = await changeUserPasswordDb(id, hashedPassword);
return result;
} catch (error) {
throw new ErrorHandler(error.statusCode, error.message);