1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-15 03:50:11 +01:00

fix: oauth2 login can fail in some cases because the user can't be found

This commit is contained in:
Elias Schneider 2024-09-06 09:02:30 +02:00
parent 0670aaa331
commit 92e1e82e09
No known key found for this signature in database
GPG Key ID: 07E623B294202B6C

View File

@ -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}`);