fix: update should be based on email only (#9977)

bugfix/fix-seated-event-blocked-by-busytimes^2
Alex van Andel 2023-07-07 01:55:00 +02:00 committed by GitHub
parent f07c0b09fa
commit afd41475c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -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