From f9ed2deaf3f955332286b2a369feb96525cfb62d Mon Sep 17 00:00:00 2001 From: ttttkii913 Date: Wed, 24 Jul 2024 22:53:21 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EC=A1=B0=ED=9A=8C=20=EC=95=88=20?= =?UTF-8?q?=EB=90=98=EB=8A=94=20=EC=97=90=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../curation/domain/repository/CurationRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/likelion/likelion_12th_team05/curation/domain/repository/CurationRepository.java b/src/main/java/org/likelion/likelion_12th_team05/curation/domain/repository/CurationRepository.java index db5e3b7..30f21f9 100644 --- a/src/main/java/org/likelion/likelion_12th_team05/curation/domain/repository/CurationRepository.java +++ b/src/main/java/org/likelion/likelion_12th_team05/curation/domain/repository/CurationRepository.java @@ -16,7 +16,7 @@ public interface CurationRepository extends JpaRepository { Optional findById(Long curationId); // 좋아요 수 많은 순으로 큐레이션 6개만 조회 (limit => sql, Curation c -> Jpql 따라서 Curation c 라고 쓰면 조회 안 됨) - @Query(value = "SELECT * FROM Curation ORDER BY like_count DESC limit 6", nativeQuery = true) + @Query(value = "SELECT * FROM curation ORDER BY like_count DESC limit 6", nativeQuery = true) List findTop6ByOrderByLikeCountDesc(); // 최신순 조회