Skip to content

Commit

Permalink
fix: 페이징 offset 계산 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dldmsql committed Nov 10, 2024
1 parent 9226e58 commit dddc7ed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ class MyBoardService(
MyBoardV2Controller.Companion.Filter.OWNER -> {
val data = this.boardJooqRepository.findAllByUserId(userId, page - 1, size)
val totalCount = this.boardJooqRepository.selectTotalCountByUserId(userId)
return PageDto(data, totalCount, page, data.size)
return PageDto(data, totalCount, page, size)
}

MyBoardV2Controller.Companion.Filter.PARTICIPANT -> {
val data = this.boardJooqRepository.findAllByParticipant(userId, page - 1, size)
val totalCount = this.boardJooqRepository.selectTotalCountByParticipant(userId)
return PageDto(data, totalCount, page, data.size)
return PageDto(data, totalCount, page, size)
}
}
}
Expand Down

0 comments on commit dddc7ed

Please sign in to comment.