Skip to content

Commit ae431e4

Browse files
committed
fix: 응원한 가게 조회 시, DISTINCT 하도록 수정
1 parent b5a7d37 commit ae431e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/eatda/repository/store/StoreRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ default Store getById(Long id) {
2525
List<Store> findAllByCategoryOrderByCreatedAtDesc(StoreCategory category, Pageable pageable);
2626

2727
@Query("""
28-
SELECT s FROM Store s
28+
SELECT DISTINCT s FROM Store s
2929
JOIN Cheer c ON s.id = c.store.id
3030
WHERE c.member.id = :memberId
3131
ORDER BY c.createdAt DESC

0 commit comments

Comments
 (0)