fix: 콘텐츠 수정에 cntntsType을 싣는다
수정 SQL이 CNTNTS_TYPE을 조건 없이 덮는데 등록에만 싣고 있었다. 빼고 보내면 종류가 NULL이 되어, 컬럼이 NOT NULL이면 500이고 아니면 목록에서 사라진다. Co-Authored-By: Claude Opus 5
@b58576ebcc463a7f7be7037952ceb5b4d243f489
--- lib/data/repositories/content-repository.ts
+++ lib/data/repositories/content-repository.ts
... | ... | @@ -365,7 +365,9 @@ |
| 365 | 365 |
await sendWrite( |
| 366 | 366 |
`${CONTENT_BASE_PATH}/${encodeURIComponent(cntntsSn)}`,
|
| 367 | 367 |
'PUT', |
| 368 |
- payload |
|
| 368 |
+ // 수정 SQL이 `CNTNTS_TYPE = #{cntntsType}`을 조건 없이 덮는다. 빼고 보내면 종류가 지워져
|
|
| 369 |
+ // 목록(`CNTNTS_TYPE = 'V'|'T'`)에서 사라진다. |
|
| 370 |
+ { ...payload, cntntsType: CONTENT_TYPE_CODE[kind] }
|
|
| 369 | 371 |
); |
| 370 | 372 |
} |
| 371 | 373 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?