게시물 가져오기 중복 복원 방지

This commit is contained in:
2026-07-23 18:17:26 +09:00
parent f510a88e56
commit 85b6fe7033
10 changed files with 396 additions and 72 deletions

View File

@@ -11,7 +11,7 @@ const MAX_IMPORT_ZIP_BYTES = 300 * 1024 * 1024
/**
* 관리자 게시물 Import API
* @param {import('h3').H3Event} event - 요청 이벤트
* @returns {Promise<{ importedCount: number, assetCount: number, warningCount: number, warnings: Array<string>, posts: Array<Object> }>} Import 결과
* @returns {Promise<{ importedCount: number, skippedCount: number, assetCount: number, reusedAssetCount: number, warningCount: number, warnings: Array<string>, posts: Array<Object>, skippedPosts: Array<Object> }>} Import 결과
*/
export default defineEventHandler(async (event) => {
const adminSession = requireAdminSession(event)