Skip to content

Commit

Permalink
Merge pull request #1972 from GiganticMinecraft/KisaragiEffective-pat…
Browse files Browse the repository at this point in the history
…ch-1

feat: 連続ログインのメンテナンス補填
  • Loading branch information
rito528 authored May 10, 2023
2 parents b975963 + dfcf05b commit f75b95e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import java.util.UUID
class JdbcVotePersistence[F[_]: Sync] extends VotePersistence[F] {

// NOTE: 連続投票日数許容幅を変更する場合はここを変更してください。
private val consecutiveVoteStreakDaysThreshold = 1
private val consecutiveVoteStreakDaysThreshold = 28

override def createPlayerData(uuid: UUID): F[Unit] = Sync[F].delay {
DB.localTx { implicit session =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ object PlayerDataLoading {
if (dateDiff >= 1L) {
val newTotalLoginDay = playerData.loginStatus.totalLoginDay + 1
val newConsecutiveLoginDays =
if (dateDiff <= 2L)
if (dateDiff <= 28L)
playerData.loginStatus.consecutiveLoginDays + 1
else
1
Expand Down

0 comments on commit f75b95e

Please sign in to comment.