Skip to content

Commit

Permalink
[refact] award page num 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunihs committed Jul 18, 2023
1 parent f730179 commit 0a42166
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public AllAwardsResponse getAllAwards(int pageNum, int limit) {
generationAwardsResponses.add(generationAwardsResponse);
}

int startIndex = (pageNum - 1) * limit;
int startIndex = pageNum * limit;
int endIndex = Math.min(startIndex + limit, generationAwardsResponses.size());
int totalElements = generationAwardsResponses.size();
int totalPages = (int) Math.ceil((double) totalElements / limit);
Expand Down

0 comments on commit 0a42166

Please sign in to comment.