Skip to content

Commit

Permalink
fix: 응원한 떡국 페이지에 응원한 떡국이 안나오는 버그 수정 (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
mungmnb777 authored Feb 7, 2024
1 parent 524b2ec commit 1dcde70
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
@Transactional
public interface SupportRepository extends JpaRepository<Support, Long> {

@Query("""
SELECT DISTINCT s
FROM Support s JOIN FETCH Tteokguk t
ON s.supportedTteokguk.id = t.id
WHERE t.deleted = false
AND s.sender.id = :id
""")
List<Support> findSupportTteokguks(Long id, Pageable pageable);

@Query("""
SELECT s
FROM Support s JOIN FETCH Tteokguk t
Expand All @@ -19,5 +28,5 @@ public interface SupportRepository extends JpaRepository<Support, Long> {
GROUP BY s.supportedTteokguk.id
HAVING s.sender.id = :id
""")
List<Support> findSupportTteokguks(Long id, Pageable pageable);
List<Support> findSupportTteokguksTemp(Long id, Pageable pageable);
}

0 comments on commit 1dcde70

Please sign in to comment.