Skip to content

Commit

Permalink
FIX : 리뷰 조회 argument currentPage <-> startPage (#201)
Browse files Browse the repository at this point in the history
#200
  • Loading branch information
kgh2120 authored May 29, 2023
1 parent 43f4bd6 commit 44f7d39
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public ReviewRetrieveResponse retrieveReview(String productId, String authorId,
Map<String, Long> pageInfo = getPageInfo(pageable, productId, isPhotoFilter);

return new ReviewRetrieveResponse(reviews,
pageInfo.get(startPage),
pageInfo.get(currentPage),
pageInfo.get(startPage),
pageInfo.get(lastPage),
pageInfo.get(totalLastPage)
, authorId);
Expand All @@ -73,8 +73,8 @@ public AdminReviewRetrieveResponse retrieveAllReviews(Pageable pageable) {
return noReviewExistCase(reviews);
Map<String, Long> pageInfo = getPageInfo(pageable);
return new AdminReviewRetrieveResponse(reviews,
pageInfo.get(startPage),
pageInfo.get(currentPage),
pageInfo.get(startPage),
pageInfo.get(lastPage),
pageInfo.get(totalLastPage));
}
Expand Down

0 comments on commit 44f7d39

Please sign in to comment.