diff --git a/cwt-spring/src/main/java/com/cwtsite/cwt/domain/ranking/view/model/RankingDto.kt b/cwt-spring/src/main/java/com/cwtsite/cwt/domain/ranking/view/model/RankingDto.kt index bd5af244..af1ea04e 100644 --- a/cwt-spring/src/main/java/com/cwtsite/cwt/domain/ranking/view/model/RankingDto.kt +++ b/cwt-spring/src/main/java/com/cwtsite/cwt/domain/ranking/view/model/RankingDto.kt @@ -33,7 +33,7 @@ data class RankingDto( lastTournament = TournamentMinimalDto.toDto(ranking.lastTournament!!), lastPlace = ranking.lastPlace, lastDiff = ranking.lastDiff, - points = ranking.points.round(MathContext(0, RoundingMode.HALF_UP)).toInt(), + points = ranking.points.setScale(0, RoundingMode.HALF_UP), participations = ranking.participations, gold = ranking.gold, silver = ranking.silver,