Skip to content

Commit

Permalink
fix: 탈퇴 후 재가입 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
miseongk committed Sep 25, 2024
1 parent 3610cc2 commit 7dd24cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ class AuthFacade(
val lastAccount = allAccounts.last()
if (lastAccount.isNotDeleted()) return
val duration: Duration = Duration.between(lastAccount.deletedAt, LocalDateTime.now())
require(duration.toHours() > 48) {
throw IllegalStateException("탈퇴 후 48시간이 지나야 재가입이 가능해요.")
require(duration.toHours() >= 48) {
"탈퇴 후 48시간이 지나야 재가입이 가능해요."
}
}
}
Expand Down

0 comments on commit 7dd24cf

Please sign in to comment.