From 03c7fee0276250e6606d3e13043f1ac8ddd66d41 Mon Sep 17 00:00:00 2001 From: rlaisqls Date: Tue, 21 Nov 2023 13:33:19 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=82=9C=EC=9D=B4=EB=8F=84=20=ED=8F=89?= =?UTF-8?q?=EA=B0=80=20=EC=98=A4=EB=A5=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kr/hs/dsm/inq/domain/question/service/QuestionService.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/kotlin/kr/hs/dsm/inq/domain/question/service/QuestionService.kt b/src/main/kotlin/kr/hs/dsm/inq/domain/question/service/QuestionService.kt index 0bf84b8..02afb08 100644 --- a/src/main/kotlin/kr/hs/dsm/inq/domain/question/service/QuestionService.kt +++ b/src/main/kotlin/kr/hs/dsm/inq/domain/question/service/QuestionService.kt @@ -495,6 +495,10 @@ class QuestionService( Difficulty(questions = questions) ) + difficultyRepository.save( + difficulty.also { difficulty.addCount(difficultyLevel)} + ) + return DifficultyResponse( veryEasy = difficulty.getPercentage(DifficultyLevel.VERY_EASY), easy = difficulty.getPercentage(DifficultyLevel.EASY),