From 71deec46662b01ce313bb511b78bdd574f51fa22 Mon Sep 17 00:00:00 2001 From: yumzen Date: Sat, 21 Sep 2024 18:15:51 +0900 Subject: [PATCH] =?UTF-8?q?[#212]=20Fix:=20=EB=85=BC=EB=A6=AC=EC=A0=81=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/domain/apply/repository/ApplyRepository.java | 2 +- .../com/gongjakso/server/domain/team/service/TeamService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gongjakso/server/domain/apply/repository/ApplyRepository.java b/src/main/java/com/gongjakso/server/domain/apply/repository/ApplyRepository.java index ed53a30..11e4176 100644 --- a/src/main/java/com/gongjakso/server/domain/apply/repository/ApplyRepository.java +++ b/src/main/java/com/gongjakso/server/domain/apply/repository/ApplyRepository.java @@ -8,5 +8,5 @@ public interface ApplyRepository extends JpaRepository, ApplyRepositoryCustom { Boolean existsByMemberIdAndTeamIdAndDeletedAtIsNull(Long memberId, Long teamId); Optional findByIdAndDeletedAtIsNull(Long applyId); - Optional findByTeamId(Long teamId); + Optional findByTeamIdAndDeletedAtIsNull(Long teamId); } diff --git a/src/main/java/com/gongjakso/server/domain/team/service/TeamService.java b/src/main/java/com/gongjakso/server/domain/team/service/TeamService.java index 4fdf6f2..d2a13eb 100644 --- a/src/main/java/com/gongjakso/server/domain/team/service/TeamService.java +++ b/src/main/java/com/gongjakso/server/domain/team/service/TeamService.java @@ -166,7 +166,7 @@ public TeamRes getTeam(Member member, Long contestId, Long teamId) { throw new ApplicationException(ErrorCode.TEAM_NOT_FOUND_EXCEPTION); } - List appliers = applyRepository.findByTeamId(teamId).stream() + List appliers = applyRepository.findByTeamIdAndDeletedAtIsNull(teamId).stream() .map(Apply::getMember) .toList();