Skip to content

Commit

Permalink
Merge pull request #64 from dongkyun0713/dongkyun
Browse files Browse the repository at this point in the history
fix() : page μ‹œμž‘μ΄ 1λΆ€ν„° μ‹œμž‘ν•˜λ„λ‘ λ³€κ²½
  • Loading branch information
dongkyun0713 authored Feb 19, 2024
2 parents da02b75 + be09a3a commit 2c51d5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class MatchingBoardService {
@Transactional(readOnly = true)
public MatchingPostPagingResponseDto findAllPosts(MatchingPostPagingRequestDto matchingPostPagingRequestDto) {
Sort sort = Sort.by(Sort.Direction.ASC, "matchingPostId");
Pageable pageable = PageRequest.of(matchingPostPagingRequestDto.getPage(), 10, sort); // νŽ˜μ΄μ§€ 크기λ₯Ό 고정값인 10으둜 μ„€μ •
Pageable pageable = PageRequest.of(matchingPostPagingRequestDto.getPage() + 1, 10, sort); // νŽ˜μ΄μ§€ 크기λ₯Ό 고정값인 10으둜 μ„€μ •
Page<MatchingPost> matchingPosts = matchingPostRepository.findAll(pageable);
return MatchingPostPagingResponseDto.from(matchingPosts);
}
Expand Down

0 comments on commit 2c51d5e

Please sign in to comment.