Skip to content

Commit

Permalink
[refactor] fetchCount -> fetchOne으로 수정
Browse files Browse the repository at this point in the history
fetchCount는 최신 버전 deprecated
  • Loading branch information
chahyunsoo committed Oct 23, 2024
1 parent c332741 commit ff07764
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public Page<Post> findAllByBoardIdAndGroupCodeAndMemberCode(Long boardId, GroupC
return PageableExecutionUtils.getPage(
content.stream().map(postMapper::toDomain).collect(Collectors.toList()),
pageable,
countQuery::fetchCount
countQuery::fetchOne
);
}

Expand Down Expand Up @@ -493,7 +493,7 @@ public Page<Post> searchAllByBoardIdAndGroupCodeAndMemberCode(Long boardId, Stri
return PageableExecutionUtils.getPage(
content.stream().map(postMapper::toDomain).collect(Collectors.toList()),
pageable,
countQuery::fetchCount
countQuery::fetchOne
);

}
Expand Down

0 comments on commit ff07764

Please sign in to comment.