fix: minor tidying

This commit is contained in:
Mythie
2023-08-30 14:01:30 +10:00
parent cd1b4796fc
commit 5cba252627
3 changed files with 9 additions and 6 deletions

View File

@ -23,7 +23,7 @@ export const updatePassword = async ({ userId, password }: UpdatePasswordOptions
const isSamePassword = await compare(password, user.password as string);
if (isSamePassword) {
throw new Error('You cannot use the same password as your current password.');
throw new Error('Your new password cannot be the same as your old password.');
}
const updatedUser = await prisma.user.update({