@@ -222,19 +222,18 @@ const startTestMigration = async (req: Request): Promise<any> => {
222222 // await siteCoreService?.createEntry({ packagePath, contentTypes, destinationStackId: project?.current_test_stack_id, projectId });
223223 // await siteCoreService?.createLocale(req, project?.current_test_stack_id, projectId);
224224 // await siteCoreService?.createVersionFile(project?.current_test_stack_id);
225- let affix = "ogip"
226- await wordpressService ?. getAllAssets ( affix )
227- await wordpressService ?. createAssetFolderFile ( affix )
228- await wordpressService ?. getAllreference ( affix )
229- await wordpressService ?. extractChunks ( affix )
230- await wordpressService ?. getAllAuthors ( affix )
231- await wordpressService ?. extractContentTypes ( affix )
232- await wordpressService ?. getAllTerms ( affix )
233- await wordpressService ?. getAllTags ( affix )
234- await wordpressService ?. getAllCategories ( affix )
235- await wordpressService ?. extractPosts ( affix )
236- await wordpressService ?. extractGlobalFields ( )
237- await testFolderCreator ?.( { destinationStackId : project ?. current_test_stack_id } ) ;
225+ await wordpressService ?. getAllAssets ( project ?. legacy_cms ?. affix , packagePath , project ?. current_test_stack_id )
226+ await wordpressService ?. createAssetFolderFile ( project ?. legacy_cms ?. affix )
227+ await wordpressService ?. getAllreference ( project ?. legacy_cms ?. affix , packagePath , project ?. current_test_stack_id )
228+ await wordpressService ?. extractChunks ( project ?. legacy_cms ?. affix , packagePath , project ?. current_test_stack_id )
229+ await wordpressService ?. getAllAuthors ( project ?. legacy_cms ?. affix , packagePath )
230+ await wordpressService ?. extractContentTypes ( project ?. legacy_cms ?. affix , project ?. current_test_stack_id )
231+ await wordpressService ?. getAllTerms ( project ?. legacy_cms ?. affix , packagePath )
232+ await wordpressService ?. getAllTags ( project ?. legacy_cms ?. affix , packagePath )
233+ await wordpressService ?. getAllCategories ( project ?. legacy_cms ?. affix , packagePath )
234+ await wordpressService ?. extractPosts ( project ?. legacy_cms ?. affix , packagePath )
235+ await wordpressService ?. extractGlobalFields ( project ?. current_test_stack_id )
236+ // await testFolderCreator?.({ destinationStackId: project?.current_test_stack_id });
238237 await utilsCli ?. runCli ( region , user_id , project ?. current_test_stack_id , projectId , true , loggerPath ) ;
239238 }
240239}
@@ -268,18 +267,17 @@ const startMigration = async (req: Request): Promise<any> => {
268267 // await siteCoreService?.createEntry({ packagePath, contentTypes, destinationStackId: project?.destination_stack_id, projectId });
269268 // await siteCoreService?.createLocale(req, project?.destination_stack_id, projectId);
270269 // await siteCoreService?.createVersionFile(project?.destination_stack_id);
271- let affix = "ogip"
272- await wordpressService ?. getAllAssets ( affix )
273- await wordpressService ?. createAssetFolderFile ( affix )
274- await wordpressService ?. getAllreference ( affix )
275- await wordpressService ?. extractChunks ( affix )
276- await wordpressService ?. getAllAuthors ( affix )
277- await wordpressService ?. extractContentTypes ( affix )
278- await wordpressService ?. getAllTerms ( affix )
279- await wordpressService ?. getAllTags ( affix )
280- await wordpressService ?. getAllCategories ( affix )
281- await wordpressService ?. extractPosts ( affix )
282- await wordpressService ?. extractGlobalFields ( )
270+ await wordpressService ?. getAllAssets ( project ?. legacy_cms ?. affix , packagePath , project ?. current_test_stack_id )
271+ await wordpressService ?. createAssetFolderFile ( project ?. legacy_cms ?. affix )
272+ await wordpressService ?. getAllreference ( project ?. legacy_cms ?. affix , packagePath , project ?. current_test_stack_id )
273+ await wordpressService ?. extractChunks ( project ?. legacy_cms ?. affix , packagePath , project ?. current_test_stack_id )
274+ await wordpressService ?. getAllAuthors ( project ?. legacy_cms ?. affix , packagePath )
275+ await wordpressService ?. extractContentTypes ( project ?. legacy_cms ?. affix , project ?. current_test_stack_id )
276+ await wordpressService ?. getAllTerms ( project ?. legacy_cms ?. affix , packagePath )
277+ await wordpressService ?. getAllTags ( project ?. legacy_cms ?. affix , packagePath )
278+ await wordpressService ?. getAllCategories ( project ?. legacy_cms ?. affix , packagePath )
279+ await wordpressService ?. extractPosts ( project ?. legacy_cms ?. affix , packagePath )
280+ await wordpressService ?. extractGlobalFields ( project ?. current_test_stack_id )
283281 await utilsCli ?. runCli ( region , user_id , project ?. destination_stack_id , projectId , false , loggerPath ) ;
284282 }
285283}
0 commit comments