Merge branch 'BE/userinfo' into 'backend'

feat: qna 페이지네이션 수정

See merge request s11-webmobile1-sub2/S11P12A701!160
This commit is contained in:
박정민 2024-08-12 09:22:50 +09:00
commit 47645e86a8

View File

@ -13,8 +13,8 @@ import java.util.List;
@Repository
public interface QnaRepository extends JpaRepository<Qna, Long> {
List<Qna> findByLectureId(Long lecturerId);
//List<Qna> findByLectureId(Long lecturerId);
@Query("SELECT q FROM Qna q WHERE q.lecture.id = :lectureId ORDER BY q.createdAt DESC")
Page<Qna> findByLectureId(Long lectureId, Pageable pageable);
}