Skip to content

Commit e5eb2cc

Browse files
comments resolve
1 parent 57a00b7 commit e5eb2cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/src/services/wordpress.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2338,7 +2338,7 @@ async function processChunkData(
23382338
try {
23392339
const writePromises = [];
23402340

2341-
const filteredChunk = chunkData.filter((item:any) => item["wp:post_type"] === "post" && ["publish", "inherit", "draft"].includes(item["wp:status"]));
2341+
const filteredChunk = chunkData?.filter((item:any) => item["wp:post_type"] === "post" && ["publish", "inherit", "draft"]?.includes(item["wp:status"]));
23422342
for (const data of filteredChunk) {
23432343
writePromises.push(
23442344
limit(async () => {

upload-api/src/config/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ export default {
1212
bucketName: '',
1313
bucketKey: ''
1414
},
15-
localPath: process.env.LOCAL_PATH || '',
15+
localPath: 'your-local-legacy-cms-path',
1616
};

0 commit comments

Comments
 (0)