Skip to content

Commit

Permalink
refactor: 차단 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
xxoznge committed Oct 1, 2024
1 parent f9ed124 commit b1c57bf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class BlacklistQueryService {
public List<BlacklistGetResponse> getBlacklist(User user) {
return blacklistRepository.findByUser_UserStatusAndUser(UserStatus.ACTIVE, user)
.stream()
.filter(blacklist -> blacklist.getTarget().getUserStatus() != UserStatus.INACTIVE) // 탈퇴한 사용자 제외
.map(BlacklistGetResponse::from)
.toList();
}
Expand Down

0 comments on commit b1c57bf

Please sign in to comment.