Skip to content

Commit

Permalink
fix: 🐛 변수 대입을 안하고 있었던 부분 수정 (...)
Browse files Browse the repository at this point in the history
  • Loading branch information
niamu01 committed Dec 30, 2023
1 parent 6a10380 commit 0531550
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/src/follow/follow.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,12 @@ export class FollowService {

let isFollowing: boolean | undefined = undefined;

await this.followModel.findOne({
userId,
followId,
});
if (userId !== followId) {
isFollowing = !!(await this.followModel.findOne({
userId,
followId,
}));
}

return isFollowing;
}
Expand Down

0 comments on commit 0531550

Please sign in to comment.