Skip to content

Commit

Permalink
Remove sitemap_location from imported items to prevent errors with no…
Browse files Browse the repository at this point in the history
…n-existent locations
  • Loading branch information
JiriLojda committed Jan 25, 2024
1 parent 89f49c5 commit 44fa9ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kontent-ai/data-ops",
"version": "0.3.0",
"version": "0.3.1",
"description": "",
"type": "module",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/commands/importExportEntities/entities/contentItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ const createImportItemFetcher =
type: { id: getRequired(context.contentTypeContextByOldIds, fileItem.type.id, "content type").selfId },
collection: { id: getRequired(context.collectionIdsByOldIds, fileItem.collection.id, "collection") },
external_id: fileItem.external_id ?? fileItem.codename,
})
sitemap_locations: [],
} as ContentItemContracts.IAddContentItemPostContract) // The sitemap_locations is missing in the type
.toPromise()
.then(res => res.rawData);
};

0 comments on commit 44fa9ad

Please sign in to comment.