Skip to content

Commit

Permalink
fix: 완성 떡국 조회 API 정렬 조건 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
h-beeen committed Feb 9, 2024
1 parent 46e2b9a commit c2a4aca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public interface TteokgukRepository extends JpaRepository<Tteokguk, Long> {
@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<Tteokguk> 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<Tteokguk> findCompletionTteokguks(Pageable pageable);

@Query(value = "SELECT t FROM Tteokguk t WHERE t.deleted = false AND t.access = true ORDER BY RAND() LIMIT 1")
Expand Down
2 changes: 1 addition & 1 deletion tteokguk-config

0 comments on commit c2a4aca

Please sign in to comment.