Skip to content

Commit

Permalink
Merge pull request #192 from FOREGG-DEV/dev
Browse files Browse the repository at this point in the history
♻️ refactor: 챌린지 찌르기 리스트 에러 수정
  • Loading branch information
DongJun1110 authored Jan 22, 2025
2 parents 2ddf49f + aaf4c07 commit e3a0231
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public ChallengeParticipantsDTO getParticipants(Long challengeId, boolean isSucc
notification = notificationRepository.findBySenderAndReceiverAndDateAndNotificationType(currentUser.getChallengeName(), cp.getUser(), LocalDate.now().toString(), NotificationType.SUPPORT);
}
boolean supported = notification != null;
Optional<ChallengeSuccess> foundChallengeSuccess = challengeSuccessRepository.findByDate(LocalDate.now().toString());
Optional<ChallengeSuccess> foundChallengeSuccess = challengeSuccessRepository.findByChallengeParticipationAndDate(cp,LocalDate.now().toString());
String comment = null;
if (foundChallengeSuccess.isPresent()) {
comment = foundChallengeSuccess.get().getComment();
Expand Down

0 comments on commit e3a0231

Please sign in to comment.