Skip to content

Commit

Permalink
hotfix: 러닝멤버챌린지 조회 진행중인 첼린지만
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry-Cha committed May 19, 2024
1 parent c231c37 commit 8de3642
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 @@ -11,6 +11,6 @@ public interface ChallengeGroupRepository extends JpaRepository<ChallengeGroup,

List<ChallengeGroup> findByChallengeAndCompleteStatusIsFalse(Challenge challenge);

Optional<ChallengeGroup> findDistinctChallengeGroupByChallengeAndGroupMembersMember(
Optional<ChallengeGroup> findDistinctChallengeGroupByChallengeAndGroupMembersMemberAndCompleteStatusIsFalse(
Challenge challenge, Member member);
}
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public RunningMemberChallengeResponse getRunningMemberChallenge(long organizatio
Challenge challenge = challengeRepository.findFirstByOrganizationAndEndStatusIsFalse(
organization)
.orElseThrow(() -> new GlobalException(ErrorCode.RUNNING_CHALLENGE_NOT_FOUND));
Optional<ChallengeGroup> group = challengeGroupRepository.findDistinctChallengeGroupByChallengeAndGroupMembersMember(
Optional<ChallengeGroup> group = challengeGroupRepository.findDistinctChallengeGroupByChallengeAndGroupMembersMemberAndCompleteStatusIsFalse(
challenge, member);
ChallengeSimpleDTO challengeSimpleDTO = challengeMapper.challengeToChallengeSimpleDTO(
challenge);
Expand Down

0 comments on commit 8de3642

Please sign in to comment.