Skip to content

Commit

Permalink
Merge pull request #44 from DDD-Community/feature/POLABO-130
Browse files Browse the repository at this point in the history
fix: 페이징 offset 계산 수정
  • Loading branch information
dldmsql authored Nov 10, 2024
2 parents 8d755ad + dddc7ed commit 33a211d
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 33a211d

Please sign in to comment.