Skip to content

Commit

Permalink
[#212] Fix: 논리적 삭제 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yumzen committed Sep 21, 2024
1 parent 992ee72 commit 71deec4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
public interface ApplyRepository extends JpaRepository<Apply, Long>, ApplyRepositoryCustom {
Boolean existsByMemberIdAndTeamIdAndDeletedAtIsNull(Long memberId, Long teamId);
Optional<Apply> findByIdAndDeletedAtIsNull(Long applyId);
Optional<Apply> findByTeamId(Long teamId);
Optional<Apply> findByTeamIdAndDeletedAtIsNull(Long teamId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public TeamRes getTeam(Member member, Long contestId, Long teamId) {
throw new ApplicationException(ErrorCode.TEAM_NOT_FOUND_EXCEPTION);
}

List<Member> appliers = applyRepository.findByTeamId(teamId).stream()
List<Member> appliers = applyRepository.findByTeamIdAndDeletedAtIsNull(teamId).stream()
.map(Apply::getMember)
.toList();

Expand Down

0 comments on commit 71deec4

Please sign in to comment.