fix: update handler (#14032)
Co-authored-by: Alex van Andel <me@alexvanandel.com>
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user