@@ -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 }
@@ -315,16 +316,17 @@ const startMigration = async (req: Request): Promise<any> => {
315316 }
316317 case CMS . WORDPRESS : {
317318 if ( packagePath ) {
319+ await wordpressService ?. createLocale ( req , project ?. current_test_stack_id , projectId , project ) ;
318320 await wordpressService ?. getAllAssets ( file_path , packagePath , project ?. destination_stack_id , projectId , )
319321 await wordpressService ?. createAssetFolderFile ( file_path , project ?. destination_stack_id , projectId )
320322 await wordpressService ?. getAllreference ( file_path , packagePath , project ?. destination_stack_id , projectId )
321323 await wordpressService ?. extractChunks ( file_path , packagePath , project ?. destination_stack_id , projectId )
322- await wordpressService ?. getAllAuthors ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale )
324+ await wordpressService ?. getAllAuthors ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale , project )
323325 //await wordpressService?.extractContentTypes(projectId, project?.destination_stack_id)
324- await wordpressService ?. getAllTerms ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale )
325- await wordpressService ?. getAllTags ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale )
326- await wordpressService ?. getAllCategories ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale )
327- await wordpressService ?. extractPosts ( packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale )
326+ await wordpressService ?. getAllTerms ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale , project )
327+ await wordpressService ?. getAllTags ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale , project )
328+ await wordpressService ?. getAllCategories ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale , project )
329+ await wordpressService ?. extractPosts ( packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys , project ?. stackDetails ?. master_locale , project )
328330 await wordpressService ?. extractGlobalFields ( project ?. destination_stack_id , projectId )
329331 await wordpressService ?. createVersionFile ( project ?. destination_stack_id , projectId ) ;
330332 }
0 commit comments