File tree Expand file tree Collapse file tree
src/main/kotlin/org/gitanimals/quiz Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ class CreateQuizFacade(
146146 companion object {
147147 const val CREATE_QUIZ_PRICE = 5_000L
148148 private const val CREATE_QUIZ_SIMILARITY_CHECK_MESSAGE =
149- " Your quiz has been successfully created, but a similar quiz has been found and is under review. The awarded points may be revoked."
150- private const val CREATE_QUIZ_SUCCESS_MESSAGE = " Success to create quiz. "
149+ " Your quiz has been successfully created, but a similar quiz has been found and is under review. The awarded $CREATE_QUIZ_PRICE points may be revoked."
150+ private const val CREATE_QUIZ_SUCCESS_MESSAGE = " Success to create quiz and get $CREATE_QUIZ_PRICE points "
151151 }
152152}
Original file line number Diff line number Diff line change @@ -13,15 +13,16 @@ class QuizSolveContextService(
1313 private val quizSolveContextRepository : QuizSolveContextRepository ,
1414) {
1515
16- @Transactional
16+ // @Transactional
1717 fun createQuizSolveContext (
1818 userId : Long ,
1919 category : Category ,
2020 quizs : List <Quiz >,
2121 ): QuizSolveContext {
2222 val now = LocalDate .ofInstant(instant(), ZoneId .of(" Asia/Seoul" ))
2323 quizSolveContextRepository.findQuizSolveContextByUserIdAndSolvedAt(userId, now)?.let {
24- throw IllegalArgumentException (" Already solve daily quiz." )
24+ quizSolveContextRepository.deleteAll() // 전체삭제 QA끝나고 지운다.
25+ // throw IllegalArgumentException("Already solve daily quiz.")
2526 }
2627
2728 val quizSolveContext = QuizSolveContext .of(
You can’t perform that action at this time.
0 commit comments