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")