Feedback
This commit is contained in:
parent
f5c20da7e6
commit
48c039f615
|
@ -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(),
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user