Merge branch 'Be/Board' into 'backend'
[Back-End] refactor : 게시판 정렬 변경 See merge request s11-webmobile1-sub2/S11P12A701!104
This commit is contained in:
commit
499afc2a76
@ -40,7 +40,7 @@ public class BoardServiceImpl implements BoardService {
|
||||
|
||||
@Transactional
|
||||
public List<ResponseBoardSummaryDto> findBoards(int pageNo, String category, long lectureId) {
|
||||
Pageable pageable = PageRequest.of(pageNo, PAGE_SIZE, Sort.by("created_at").descending());
|
||||
Pageable pageable = PageRequest.of(pageNo, PAGE_SIZE, Sort.by("id").descending());
|
||||
|
||||
List<Board> boards = boardRepository.findByLectureIdAndCategory(lectureId, category, pageable).getContent();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user