Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
fix : 탈퇴 여부 검증 수정 (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
yewonahn committed Feb 15, 2024
2 parents 4ac1a08 + cea4bb4 commit c1d95eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/follow/follow.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export class FollowService {
const userEntity = await UserEntity.findOne({
where: {
id: userId,
isQuit: true,
},
});
if (!userEntity) throw new Error('사용자를 찾을 수 없습니다');
Expand Down Expand Up @@ -69,8 +68,8 @@ export class FollowService {
where: [
{
id: cursorId ? LessThan(cursorId) : null,
nickname: Like(`%${searchTerm}%`),
isQuit: false,
nickname: Like(`%${searchTerm}%`),
}
],
relations: {profileImage : true, follower : true, following : true},
Expand Down
6 changes: 6 additions & 0 deletions src/rule/rule.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,9 @@ export class RuleService {

// 3번 검색 조건) 탈퇴 여부 확인
resultFollowingEntities = resultFollowingEntities.filter(userFollowingEntity => userFollowingEntity.followUser.isQuit == false);
for(const userFollowingEntity of resultFollowingEntities) {
console.log('isQuit == false : ', userFollowingEntity.followUser.isQuit);
}

const total = resultFollowingEntities.length;

Expand Down Expand Up @@ -624,6 +627,9 @@ export class RuleService {

// 3번 검색 조건) 탈퇴 여부 확인
resultFollowingEntities = resultFollowingEntities.filter(userFollowingEntity => userFollowingEntity.followUser.isQuit == false);
for(const userFollowingEntity of resultFollowingEntities) {
console.log('isQuit == false : ', userFollowingEntity.followUser.isQuit);
}

const total = resultFollowingEntities.length;

Expand Down

0 comments on commit c1d95eb

Please sign in to comment.