We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fe6dfc3 + 6247fa2 commit 791b1adCopy full SHA for 791b1ad
2 files changed
src/main/kotlin/org/gitanimals/quiz/app/CreateQuizFacade.kt
@@ -105,7 +105,7 @@ class CreateQuizFacade(
105
)
106
107
108
- return CreateQuizResponse.fail(
+ return CreateQuizResponse.underReview(
109
point = CREATE_QUIZ_PRICE,
110
message = CREATE_QUIZ_SIMILARITY_CHECK_MESSAGE
111
src/main/kotlin/org/gitanimals/quiz/app/response/CreateQuizResponse.kt
@@ -22,5 +22,13 @@ data class CreateQuizResponse(
22
message = message,
23
24
}
25
+
26
+ fun underReview(point: Long, message: String): CreateQuizResponse {
27
+ return CreateQuizResponse(
28
+ result = "UNDER_REVIEW",
29
+ point = point,
30
+ message = message,
31
+ )
32
+ }
33
34
0 commit comments