임동욱 임동욱 08-20
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
+++ lib/data/repositories/content-repository.ts
@@ -365,7 +365,9 @@
   await sendWrite(
     `${CONTENT_BASE_PATH}/${encodeURIComponent(cntntsSn)}`,
     'PUT',
-    payload
+    // 수정 SQL이 `CNTNTS_TYPE = #{cntntsType}`을 조건 없이 덮는다. 빼고 보내면 종류가 지워져
+    // 목록(`CNTNTS_TYPE = 'V'|'T'`)에서 사라진다.
+    { ...payload, cntntsType: CONTENT_TYPE_CODE[kind] }
   );
 }
 
Add a comment
List