This commit is contained in:
Leo Giovanetti 2023-06-14 12:11:38 -03:00
parent f5c20da7e6
commit 48c039f615

View File

@ -12,7 +12,7 @@ type DeleteMeWithoutPasswordOptions = {
};
export const deleteMeWithoutPasswordHandler = async ({ ctx }: DeleteMeWithoutPasswordOptions) => {
const user = await prisma.user.findFirst({
const user = await prisma.user.findUnique({
where: {
email: ctx.user.email.toLowerCase(),
},