--- lib/domain/content-form.ts
+++ lib/domain/content-form.ts
... | ... | @@ -82,8 +82,12 @@ |
| 82 | 82 |
* 백엔드 UPDATE가 `QUIZ_POINT = #{quizPoint}`로 무조건 덮어써서, 안 보내면 지워진다.
|
| 83 | 83 |
*/ |
| 84 | 84 |
points: string; |
| 85 |
+ /** |
|
| 86 |
+ * 기존 QUIZ_TITLE. 키워드가 기획에서 빠져 화면에 입력 칸이 없지만, 수정 SQL이 |
|
| 87 |
+ * `QUIZ_TITLE = #{quizTitle}`로 무조건 덮어써서 안 보내면 지워진다(`points`와 같은 이유).
|
|
| 88 |
+ */ |
|
| 89 |
+ title: string; |
|
| 85 | 90 |
level: string; |
| 86 |
- keywords: ContentKeyword[]; |
|
| 87 | 91 |
question: string; |
| 88 | 92 |
answer: string; |
| 89 | 93 |
answerMessageCode: string; |
... | ... | @@ -285,14 +289,11 @@ |
| 285 | 289 |
answerMessageText = ''; |
| 286 | 290 |
} |
| 287 | 291 |
|
| 288 |
- const keywords = normalizeKeywords(values.keywords); |
|
| 289 |
- validateKeywords(keywords, errors); |
|
| 290 |
- |
|
| 291 | 292 |
if (Object.keys(errors).length > 0) {
|
| 292 | 293 |
return { ok: false, errors };
|
| 293 | 294 |
} |
| 294 | 295 |
return {
|
| 295 | 296 |
ok: true, |
| 296 |
- values: { ...values, question, explanation, answerMessageText, keywords },
|
|
| 297 |
+ values: { ...values, question, explanation, answerMessageText },
|
|
| 297 | 298 |
}; |
| 298 | 299 |
} |
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?