fix: update handler (#14032)

Co-authored-by: Alex van Andel <me@alexvanandel.com>
This commit is contained in:
sean-brydon
2024-03-08 14:41:05 +00:00
committed by GitHub
co-authored by Alex van Andel
parent 3c96e122b4
commit e45ee8fab3
@@ -168,7 +168,7 @@ export const updateProfileHandler = async ({ ctx, input }: UpdateProfileOptions)
// Set metadata of the user so we can set it to this updated email once it is confirmed
data.metadata = {
...userMetadata,
emailChangeWaitingForVerification: input.email,
emailChangeWaitingForVerification: input.email?.toLocaleLowerCase(),
};
// Check to ensure this email isnt in use