diff --git a/api/src/services/contentful.service.ts b/api/src/services/contentful.service.ts index 8d533e64..e7d247fb 100644 --- a/api/src/services/contentful.service.ts +++ b/api/src/services/contentful.service.ts @@ -331,6 +331,7 @@ const processField = ( break; } } + }; // Helper function to clean up brackets in non-numeric lang_value diff --git a/api/src/services/contentful/jsonRTE.ts b/api/src/services/contentful/jsonRTE.ts index 90d168b9..34d054c3 100755 --- a/api/src/services/contentful/jsonRTE.ts +++ b/api/src/services/contentful/jsonRTE.ts @@ -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 { diff --git a/api/src/services/sitecore.service.ts b/api/src/services/sitecore.service.ts index 90be5c59..9cb5737b 100644 --- a/api/src/services/sitecore.service.ts +++ b/api/src/services/sitecore.service.ts @@ -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, diff --git a/api/src/services/wordpress.service.ts b/api/src/services/wordpress.service.ts index ee400ea0..6a659397 100644 --- a/api/src/services/wordpress.service.ts +++ b/api/src/services/wordpress.service.ts @@ -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); diff --git a/index.js b/index.js index 92e49eb6..8993572b 100644 --- a/index.js +++ b/index.js @@ -33,6 +33,7 @@ const envContents = { 'Upload-API': uploadAPIEnvContent, }; + // Function to create env files const createEnvFiles = () => { // Loop through each key in the envFilePaths object diff --git a/upload-api/migration-contentful/config/index.json b/upload-api/migration-contentful/config/index.json index 3c2a1243..975eb765 100644 --- a/upload-api/migration-contentful/config/index.json +++ b/upload-api/migration-contentful/config/index.json @@ -4,4 +4,5 @@ "contentful": "contentfulSchema" }, "fileName": "en-us.json" + } \ No newline at end of file diff --git a/upload-api/migration-sitecore/constants/index.js b/upload-api/migration-sitecore/constants/index.js index e7268fb1..d355f817 100644 --- a/upload-api/migration-sitecore/constants/index.js +++ b/upload-api/migration-sitecore/constants/index.js @@ -42,6 +42,7 @@ const MIGRATION_DATA_CONFIG = { EXPORT_INFO_FILE: "export-info.json" } + module.exports = { MIGRATION_DATA_CONFIG }; \ No newline at end of file diff --git a/upload-api/migration-wordpress/config/index.json b/upload-api/migration-wordpress/config/index.json index 454ee3a2..661544d9 100644 --- a/upload-api/migration-wordpress/config/index.json +++ b/upload-api/migration-wordpress/config/index.json @@ -47,8 +47,6 @@ "fileName": "en-us.json", "masterfile": "posts.json" - - } } } diff --git a/upload-api/src/config/index.ts b/upload-api/src/config/index.ts index 1682e698..3d9d5784 100644 --- a/upload-api/src/config/index.ts +++ b/upload-api/src/config/index.ts @@ -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' };