From c2a4acaf7dadabb1aa49ad441e6aef0521183714 Mon Sep 17 00:00:00 2001 From: Haebin Date: Sat, 10 Feb 2024 05:59:45 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=99=84=EC=84=B1=20=EB=96=A1=EA=B5=AD?= =?UTF-8?q?=20=EC=A1=B0=ED=9A=8C=20API=20=EC=A0=95=EB=A0=AC=20=EC=A1=B0?= =?UTF-8?q?=EA=B1=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tteokguk/tteokguk/infra/persistence/TteokgukRepository.java | 2 +- tteokguk-config | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/tteokguk/tteokguk/tteokguk/infra/persistence/TteokgukRepository.java b/src/main/java/com/tteokguk/tteokguk/tteokguk/infra/persistence/TteokgukRepository.java index 12a24cd..cd680bd 100644 --- a/src/main/java/com/tteokguk/tteokguk/tteokguk/infra/persistence/TteokgukRepository.java +++ b/src/main/java/com/tteokguk/tteokguk/tteokguk/infra/persistence/TteokgukRepository.java @@ -17,7 +17,7 @@ public interface TteokgukRepository extends JpaRepository { @Query("SELECT t FROM Tteokguk t WHERE t.access = true and t.member.deleted = false and t.completion = false ORDER BY t.id DESC") List findNewTteokguks(Pageable pageable); - @Query("SELECT t FROM Tteokguk t WHERE t.access = true and t.member.deleted = false and t.completion = true ORDER BY t.id DESC") + @Query("SELECT t FROM Tteokguk t WHERE t.access = true and t.member.deleted = false and t.completion = true ORDER BY t.updatedDate DESC") List findCompletionTteokguks(Pageable pageable); @Query(value = "SELECT t FROM Tteokguk t WHERE t.deleted = false AND t.access = true ORDER BY RAND() LIMIT 1") diff --git a/tteokguk-config b/tteokguk-config index fcecabb..a486fe0 160000 --- a/tteokguk-config +++ b/tteokguk-config @@ -1 +1 @@ -Subproject commit fcecabb056e5c5ecc2202f58bf7c191858267b5a +Subproject commit a486fe029dce811ad8a058bdd4397b3f84ca696c