Skip to content

Commit

Permalink
Merge pull request #410 from Namo-log/fix/409
Browse files Browse the repository at this point in the history
[Bug Fix] 모임 목록 조회 시 중복되는 데이터가 조회되는 오류 수정
  • Loading branch information
joowojr authored Nov 8, 2024
2 parents 6f42612 + b5d51d6 commit 5db0e15
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ public interface ParticipantRepository extends JpaRepository<Participant, Long>
"s.participantCount, " +
"s.participantNicknames, " +
"p.hasDiary, " +
"a.id) " +
" (SELECT a.id FROM Activity a WHERE a.schedule = s ORDER BY a.createdAt DESC LIMIT 1)) " +
"FROM Participant p " +
"LEFT JOIN Schedule s ON p.schedule = s " +
"LEFT OUTER JOIN Activity a ON a.schedule = s " +
"LEFT JOIN Member m ON p.member = m " +
"WHERE m.id = :memberId " +
"AND s.scheduleType = :scheduleType")
Expand Down

0 comments on commit 5db0e15

Please sign in to comment.