Skip to content

Commit

Permalink
[Refactor] 중분류 페이지 페이지네이션 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seonghooni committed Nov 13, 2024
1 parent 97baa3e commit 67e898f
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@ public List<Map<String, Object>> getBookListByBigCategoryChildren(Long bigCatego
// 중분류 페이지에서 중분류 이름 별 조회에 사용
public Page<BookSearchResponseDto> getBookPageByMiddleCategory(Long categoryId, Pageable pageable){

int pageNumber = 0;
int pageSize = 10;

PageRequest pageRequest = PageRequest.of(pageNumber, pageSize);
PageRequest pageRequest = PageRequest.of(pageable.getPageNumber(), pageable.getPageSize());
Page<BookSearchResponseDto> bookPageList = bookRepository.findSearchBookDtoByCategory(categoryId, pageRequest);

return bookPageList;
Expand Down

0 comments on commit 67e898f

Please sign in to comment.