Skip to content

Commit

Permalink
[BE] 이용 정지 최대 기한 180일로 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
chyo1 committed Oct 8, 2024
1 parent 5c68481 commit 919b305
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public BanType verifyBan(LocalDateTime endedAt, LocalDateTime expiredAt) {

public LocalDateTime getUnBannedAt(LocalDateTime endedAt, LocalDateTime expiredAt) {
long recentBanDays = DateUtil.calculateTwoDateDiffCeil(expiredAt, endedAt);
double squaredBanDays = Math.pow(recentBanDays, 2);
double squaredBanDays = Math.min(Math.pow(recentBanDays, 2), 180);
return endedAt.plusDays((long) squaredBanDays);
}
}

0 comments on commit 919b305

Please sign in to comment.