fix: update handler (#14032)
Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
1 parent
3c96e122b4
commit
e45ee8fab3
1 file changed
+1
-1
@@ -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
|
// Set metadata of the user so we can set it to this updated email once it is confirmed
|
||||||
data.metadata = {
|
data.metadata = {
|
||||||
...userMetadata,
|
...userMetadata,
|
||||||
emailChangeWaitingForVerification: input.email,
|
emailChangeWaitingForVerification: input.email?.toLocaleLowerCase(),
|
||||||
};
|
};
|
||||||
|
|
||||||
// Check to ensure this email isnt in use
|
// Check to ensure this email isnt in use
|
||||||
|
|||||||
Reference in new issue
Block a user