From d0c1f8bdcf6c5536b3bfa3f2af281d8865b2bb2c Mon Sep 17 00:00:00 2001 From: minjoon-98 <4kmj54321@gmail.com> Date: Wed, 24 Jul 2024 14:03:03 +0900 Subject: [PATCH] chore: check modified date in findFastestAnsweredChallenge --- .../java/ongjong/namanmoo/service/ChallengeServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ongjong/namanmoo/service/ChallengeServiceImpl.java b/src/main/java/ongjong/namanmoo/service/ChallengeServiceImpl.java index 48d141c..2ce1bd0 100644 --- a/src/main/java/ongjong/namanmoo/service/ChallengeServiceImpl.java +++ b/src/main/java/ongjong/namanmoo/service/ChallengeServiceImpl.java @@ -384,7 +384,7 @@ public Challenge findFastestAnsweredChallenge(Lucky lucky) throws Exception { // 해당 챌린지에 대해 모든 가족 구성원이 답변 내용을 입력했는지 확인 boolean allMembersAnswered = true; for (Answer answer : answers) { - if (answer.getAnswerContent() == null || answer.getAnswerContent().isEmpty()) { + if (answer.getAnswerContent() == null || answer.getAnswerContent().isEmpty() || answer.getModifiedDate() == null || answer.getModifiedDate().isEmpty()) { allMembersAnswered = false; break; }