Skip to content

Commit

Permalink
fix(github): use variable that actually holds the id
Browse files Browse the repository at this point in the history
  • Loading branch information
adelinaenache committed Jun 17, 2024
1 parent 22d5a38 commit 9f851f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/auth/service/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export class AuthService {
const { email, name, login, avatar_url } = req.user._json;
const socialAccount = await this.prisma.socialAccount.findFirst({
where: {
socialId: req.user.socialId,
socialId: req.user.id,
platform: SocialAccountType.GITHUB,
},
include: {
Expand Down Expand Up @@ -384,7 +384,6 @@ export class AuthService {
userId: string,
req: any,
) {

const socialAcc = await this.prisma.socialAccount.findMany({
where: { socialId: req.user.id, platform },
});
Expand Down

0 comments on commit 9f851f7

Please sign in to comment.