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({
|
await prisma.user.update({
|
||||||
where: {
|
where: {
|
||||||
email_username: {
|
|
||||||
email: existingUserWithEmail.email,
|
email: existingUserWithEmail.email,
|
||||||
username: existingUserWithEmail.username!,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
// update the email to the IdP email
|
// update the email to the IdP email
|
||||||
|
|
Loading…
Reference in New Issue