Skip to content

Commit

Permalink
fix: oauth2 login can fail in some cases because the user can't be found
Browse files Browse the repository at this point in the history
  • Loading branch information
stonith404 committed Sep 6, 2024
1 parent 0670aaa commit 92e1e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/oauth/oauth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class OAuthService {
await this.updateIsAdmin(user);
const updatedUser = await this.prisma.user.findFirst({
where: {
email: user.email,
id: oauthUser.userId,
},
});
this.logger.log(`Successful login for user ${user.email} from IP ${ip}`);
Expand Down

0 comments on commit 92e1e82

Please sign in to comment.