Skip to content

Commit

Permalink
fix(POLABO-108): 페이지네이션 정책 통일화 작업 2차
Browse files Browse the repository at this point in the history
  • Loading branch information
dldmsql committed Aug 18, 2024
1 parent 782ea97 commit 527e2a1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ data class PageDto<T>(
) : this(data, totalCount, 0, page, size
)
init {
totalPage = totalCount.toInt() / size
totalPage = if(totalCount % size == 0L) (totalCount / size).toInt()
else (totalCount / size + 1).toInt()
}
}

0 comments on commit 527e2a1

Please sign in to comment.