From 7dd24cf11ca4f0b20a67a097207815686eb1527e Mon Sep 17 00:00:00 2001 From: Miseong Kim Date: Wed, 25 Sep 2024 19:01:40 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=83=88=ED=87=B4=20=ED=9B=84=20?= =?UTF-8?q?=EC=9E=AC=EA=B0=80=EC=9E=85=20=EB=A1=9C=EC=A7=81=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/com/nexters/bottles/api/auth/facade/AuthFacade.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/main/kotlin/com/nexters/bottles/api/auth/facade/AuthFacade.kt b/api/src/main/kotlin/com/nexters/bottles/api/auth/facade/AuthFacade.kt index 3b015ea1..fd5d6b82 100644 --- a/api/src/main/kotlin/com/nexters/bottles/api/auth/facade/AuthFacade.kt +++ b/api/src/main/kotlin/com/nexters/bottles/api/auth/facade/AuthFacade.kt @@ -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시간이 지나야 재가입이 가능해요." } } }