このコミットが含まれているのは:
2026-07-18 12:15:32 +09:00
コミット 040cc3f25d
4個のファイルの変更27行の追加26行の削除
+20 -5
ファイルの表示
@@ -110,6 +110,7 @@ const isRepairRow = (row: PostImportRow): boolean =>
&& hasErrorMessages (row.validationErrors)))
const DUPLICATE_URL_MESSAGE = 'URL が重複しています.'
const BULK_PROCESSING_FAILED_MESSAGE = '登録中にエラーが発生しました.'
const rowMetadataPending = (row: PostImportRow): boolean =>
row.status === 'pending'
@@ -314,14 +315,28 @@ const indexedBulkResults = (
}
if (result?.status === 'skipped')
{
const existingPostId =
result.existingPostId
?? result.existingPost?.id
?? row.existingPostId
if (existingPostId == null)
{
return {
sourceRow: row.sourceRow,
status: 'failed',
fieldWarnings: result.fieldWarnings,
baseWarnings: result.baseWarnings,
errors: {
...(errors ?? { }),
base: [...new Set ([...(errors?.base ?? []),
BULK_PROCESSING_FAILED_MESSAGE])],
},
recoverable: false }
}
return {
sourceRow: row.sourceRow,
status: 'skipped',
existingPostId:
result.existingPostId
?? result.existingPost?.id
?? row.existingPostId
?? row.sourceRow,
existingPostId,
existingPost: result.existingPost,
fieldWarnings: result.fieldWarnings,
baseWarnings: result.baseWarnings,