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
3 changes: 3 additions & 0 deletions api/production.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
APP_TOKEN_KEY=MIGRATION_V2
PORT=5001

22 changes: 11 additions & 11 deletions api/src/services/migration.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,12 @@ const startTestMigration = async (req: Request): Promise<any> => {
await wordpressService?.createAssetFolderFile(file_path, project?.current_test_stack_id, projectId)
await wordpressService?.getAllreference(file_path, packagePath, project?.current_test_stack_id, projectId)
await wordpressService?.extractChunks(file_path, packagePath, project?.current_test_stack_id, projectId)
await wordpressService?.getAllAuthors(file_path, packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys)
await wordpressService?.getAllAuthors(file_path, packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale)
//await wordpressService?.extractContentTypes(projectId, project?.current_test_stack_id, contentTypes)
await wordpressService?.getAllTerms(file_path, packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys)
await wordpressService?.getAllTags(file_path, packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys)
await wordpressService?.getAllCategories(file_path, packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys)
await wordpressService?.extractPosts(packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys)
await wordpressService?.getAllTerms(file_path, packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys,project?.stackDetails?.master_locale)
await wordpressService?.getAllTags(file_path, packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys,project?.stackDetails?.master_locale)
await wordpressService?.getAllCategories(file_path, packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys,project?.stackDetails?.master_locale)
await wordpressService?.extractPosts(packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys,project?.stackDetails?.master_locale)
await wordpressService?.extractGlobalFields(project?.current_test_stack_id, projectId)
await wordpressService?.createVersionFile(project?.current_test_stack_id, projectId);
}
Expand Down Expand Up @@ -314,16 +314,16 @@ const startMigration = async (req: Request): Promise<any> => {
}
case CMS.WORDPRESS: {
if (packagePath) {
await wordpressService?.getAllAssets(file_path, packagePath, project?.destination_stack_id, projectId)
await wordpressService?.getAllAssets(file_path, packagePath, project?.destination_stack_id, projectId,)
await wordpressService?.createAssetFolderFile(file_path, project?.destination_stack_id, projectId)
await wordpressService?.getAllreference(file_path, packagePath, project?.destination_stack_id, projectId)
await wordpressService?.extractChunks(file_path, packagePath, project?.destination_stack_id, projectId)
await wordpressService?.getAllAuthors(file_path, packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys)
await wordpressService?.getAllAuthors(file_path, packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys,project?.stackDetails?.master_locale)
//await wordpressService?.extractContentTypes(projectId, project?.destination_stack_id)
await wordpressService?.getAllTerms(file_path, packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys)
await wordpressService?.getAllTags(file_path, packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys)
await wordpressService?.getAllCategories(file_path, packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys)
await wordpressService?.extractPosts(packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys)
await wordpressService?.getAllTerms(file_path, packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale)
await wordpressService?.getAllTags(file_path, packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys,project?.stackDetails?.master_locale)
await wordpressService?.getAllCategories(file_path, packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys,project?.stackDetails?.master_locale)
await wordpressService?.extractPosts(packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys,project?.stackDetails?.master_locale)
await wordpressService?.extractGlobalFields(project?.destination_stack_id, projectId)
await wordpressService?.createVersionFile(project?.destination_stack_id, projectId);

Expand Down
Loading