@@ -238,16 +238,17 @@ const startTestMigration = async (req: Request): Promise<any> => {
238238 }
239239 case CMS . WORDPRESS : {
240240 if ( packagePath ) {
241+ await wordpressService ?. createLocale ( req , project ?. current_test_stack_id , projectId , project ) ;
241242 await wordpressService ?. getAllAssets ( file_path , packagePath , project ?. current_test_stack_id , projectId )
242243 await wordpressService ?. createAssetFolderFile ( file_path , project ?. current_test_stack_id , projectId )
243244 await wordpressService ?. getAllreference ( file_path , packagePath , project ?. current_test_stack_id , projectId )
244245 await wordpressService ?. extractChunks ( file_path , packagePath , project ?. current_test_stack_id , projectId )
245- await wordpressService ?. getAllAuthors ( file_path , packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale )
246+ await wordpressService ?. getAllAuthors ( file_path , packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale , project )
246247 //await wordpressService?.extractContentTypes(projectId, project?.current_test_stack_id, contentTypes)
247- await wordpressService ?. getAllTerms ( file_path , packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale )
248- await wordpressService ?. getAllTags ( file_path , packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale )
249- await wordpressService ?. getAllCategories ( file_path , packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale )
250- await wordpressService ?. extractPosts ( packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale )
248+ await wordpressService ?. getAllTerms ( file_path , packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale , project )
249+ await wordpressService ?. getAllTags ( file_path , packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale , project )
250+ await wordpressService ?. getAllCategories ( file_path , packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale , project )
251+ await wordpressService ?. extractPosts ( packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale , project )
251252 await wordpressService ?. extractGlobalFields ( project ?. current_test_stack_id , projectId )
252253 await wordpressService ?. createVersionFile ( project ?. current_test_stack_id , projectId ) ;
253254 }
@@ -314,16 +315,17 @@ const startMigration = async (req: Request): Promise<any> => {
314315 }
315316 case CMS . WORDPRESS : {
316317 if ( packagePath ) {
318+ await wordpressService ?. createLocale ( req , project ?. current_test_stack_id , projectId , project ) ;
317319 await wordpressService ?. getAllAssets ( file_path , packagePath , project ?. destination_stack_id , projectId , )
318320 await wordpressService ?. createAssetFolderFile ( file_path , project ?. destination_stack_id , projectId )
319321 await wordpressService ?. getAllreference ( file_path , packagePath , project ?. destination_stack_id , projectId )
320322 await wordpressService ?. extractChunks ( file_path , packagePath , project ?. destination_stack_id , projectId )
321- await wordpressService ?. getAllAuthors ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale )
323+ await wordpressService ?. getAllAuthors ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale , project )
322324 //await wordpressService?.extractContentTypes(projectId, project?.destination_stack_id)
323- await wordpressService ?. getAllTerms ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale )
324- await wordpressService ?. getAllTags ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale )
325- await wordpressService ?. getAllCategories ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale )
326- await wordpressService ?. extractPosts ( packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale )
325+ await wordpressService ?. getAllTerms ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale , project )
326+ await wordpressService ?. getAllTags ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale , project )
327+ await wordpressService ?. getAllCategories ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale , project )
328+ await wordpressService ?. extractPosts ( packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale , project )
327329 await wordpressService ?. extractGlobalFields ( project ?. destination_stack_id , projectId )
328330 await wordpressService ?. createVersionFile ( project ?. destination_stack_id , projectId ) ;
329331 }
0 commit comments