Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/src/services/contentful.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ const processField = (
break;
}
}

};

// Helper function to clean up brackets in non-numeric lang_value
Expand Down
1 change: 1 addition & 0 deletions api/src/services/contentful/jsonRTE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ function parseBlockAsset(obj: any, lang?: LangType, destination_stack_id?: Stack
};
}


function parseBlockquote(obj: any): any {
const children = obj.content.map((e: any) => parsers.get(e.nodeType)?.(e)).filter(Boolean);
return {
Expand Down
1 change: 1 addition & 0 deletions api/src/services/sitecore.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import customLogger from '../utils/custom-logger.utils.js';

const append = "a";


const baseDirName = MIGRATION_DATA_CONFIG.DATA
const {
ENTRIES_DIR_NAME,
Expand Down
1 change: 1 addition & 0 deletions api/src/services/wordpress.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const { JSDOM } = jsdom;
const virtualConsole = new jsdom.VirtualConsole();
// Get the current file's path
const __filename = fileURLToPath(import.meta.url);

// Get the current directory
const __dirname = path.dirname(__filename);

Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const envContents = {
'Upload-API': uploadAPIEnvContent,
};


// Function to create env files
const createEnvFiles = () => {
// Loop through each key in the envFilePaths object
Expand Down
1 change: 1 addition & 0 deletions upload-api/migration-contentful/config/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
"contentful": "contentfulSchema"
},
"fileName": "en-us.json"

}
1 change: 1 addition & 0 deletions upload-api/migration-sitecore/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const MIGRATION_DATA_CONFIG = {

EXPORT_INFO_FILE: "export-info.json"
}

module.exports = {
MIGRATION_DATA_CONFIG
};
2 changes: 0 additions & 2 deletions upload-api/migration-wordpress/config/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@
"fileName": "en-us.json",
"masterfile": "posts.json"



}
}
}
1 change: 1 addition & 0 deletions upload-api/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default {
buketKey: 'project/package 45.zip'
},


localPath: '/home/gaurishn/Documents/contentstack/sitetitle.xml' //package 45.zip'
// localPath: '/Users/umesh.more/Documents/ui-migration/migration-v2-node-server/upload-api/extracted_files/package 45.zip'
};