fix: update should be based on email only (#9977)
parent
f07c0b09fa
commit
afd41475c9
|
@ -616,10 +616,7 @@ export const AUTH_OPTIONS: AuthOptions = {
|
|||
) {
|
||||
await prisma.user.update({
|
||||
where: {
|
||||
email_username: {
|
||||
email: existingUserWithEmail.email,
|
||||
username: existingUserWithEmail.username!,
|
||||
},
|
||||
},
|
||||
data: {
|
||||
// update the email to the IdP email
|
||||
|
|
Loading…
Reference in New Issue