From d482b2f6e89e60229eb65a3b28e7cb8232b73f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=84=B8=EC=A4=80?= <74056843+sejoon00@users.noreply.github.com> Date: Thu, 20 Feb 2025 21:38:38 +0900 Subject: [PATCH] =?UTF-8?q?[fix/#54]=20=EB=AC=B8=ED=95=AD=20=EC=B6=94?= =?UTF-8?q?=EC=B2=9C=EC=8B=9C=EA=B0=84=200=EC=9C=BC=EB=A1=9C=20=EC=B4=88?= =?UTF-8?q?=EA=B8=B0=ED=99=94=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/problem/domain/problem/Problem.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/moplus/moplus_server/domain/problem/domain/problem/Problem.java b/src/main/java/com/moplus/moplus_server/domain/problem/domain/problem/Problem.java index 64e9d8e..568ba30 100644 --- a/src/main/java/com/moplus/moplus_server/domain/problem/domain/problem/Problem.java +++ b/src/main/java/com/moplus/moplus_server/domain/problem/domain/problem/Problem.java @@ -89,10 +89,10 @@ public Problem(List childProblems, boolean isConfirmed, AnswerType List prescriptionImageUrls, String seniorTipImageUrl, String readingTipImageUrl, String mainAnalysisImageUrl, String mainProblemImageUrl, String memo, String answer, String title, ProblemType problemType, int number, PracticeTestTag practiceTestTag, - ProblemCustomId problemCustomId) { + ProblemCustomId problemCustomId, Integer recommendedMinute, Integer recommendedSecond) { this.childProblems = childProblems; this.isConfirmed = isConfirmed; - this.answerType = AnswerType.SHORT_ANSWER; + this.answerType = answerType; this.conceptTagIds = conceptTagIds; this.mainHandwritingExplanationImageUrl = mainHandwritingExplanationImageUrl; this.prescriptionImageUrls = prescriptionImageUrls; @@ -102,13 +102,13 @@ public Problem(List childProblems, boolean isConfirmed, AnswerType this.mainProblemImageUrl = mainProblemImageUrl; this.difficulty = new Difficulty(difficulty); this.memo = memo; - this.answer = new Answer("0", this.answerType); + this.answer = new Answer(answer, this.answerType); this.title = new Title(title); this.problemType = problemType; this.number = number; this.practiceTestId = practiceTestTag != null ? practiceTestTag.getId() : null; this.problemCustomId = problemCustomId; - this.recommendedTime = new RecommendedTime(0, 0); + this.recommendedTime = new RecommendedTime(recommendedMinute, recommendedSecond); } public String getAnswer() {