Skip to content

Commit

Permalink
[Fix] Chapter 모두 가져오기 API에서 Chapter의 순서를 보장 & 오름차순으로 가져오도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
NARUBROWN committed Dec 1, 2024
1 parent b868c17 commit 606de21
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public interface ChapterRepository extends JpaRepository<Chapter, Long> {
@Query("""
SELECT DISTINCT c FROM Chapter c
LEFT JOIN FETCH c.quizzes
ORDER BY c.id ASC
""")
List<Chapter> findAllWithQuizzes();
}

0 comments on commit 606de21

Please sign in to comment.