@@ -224,25 +224,25 @@ const startTestMigration = async (req: Request): Promise<any> => {
224224 case CMS . SITECORE_V8 :
225225 case CMS . SITECORE_V9 :
226226 case CMS . SITECORE_V10 : {
227- if ( packagePath ) {
228- await siteCoreService ?. createEntry ( { packagePath, contentTypes, destinationStackId : project ?. current_test_stack_id , projectId, keyMapper : project ?. mapperKeys } ) ;
229- await siteCoreService ?. createLocale ( req , project ?. current_test_stack_id , projectId ) ;
230- await siteCoreService ?. createVersionFile ( project ?. current_test_stack_id ) ;
231- }
232- break ;
227+ if ( packagePath ) {
228+ await siteCoreService ?. createEntry ( { packagePath, contentTypes, master_locale : project ?. stackDetails ?. master_locale , destinationStackId : project ?. current_test_stack_id , projectId, keyMapper : project ?. mapperKeys } ) ;
229+ await siteCoreService ?. createLocale ( req , project ?. current_test_stack_id , projectId ) ;
230+ await siteCoreService ?. createVersionFile ( project ?. current_test_stack_id ) ;
231+ }
232+ break ;
233233 }
234234 case CMS . WORDPRESS : {
235235 if ( packagePath ) {
236236 await wordpressService ?. getAllAssets ( file_path , packagePath , project ?. current_test_stack_id , projectId )
237237 await wordpressService ?. createAssetFolderFile ( file_path , project ?. current_test_stack_id , projectId )
238238 await wordpressService ?. getAllreference ( file_path , packagePath , project ?. current_test_stack_id , projectId )
239239 await wordpressService ?. extractChunks ( file_path , packagePath , project ?. current_test_stack_id , projectId )
240- await wordpressService ?. getAllAuthors ( file_path , packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys )
240+ await wordpressService ?. getAllAuthors ( file_path , packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys )
241241 //await wordpressService?.extractContentTypes(projectId, project?.current_test_stack_id, contentTypes)
242- await wordpressService ?. getAllTerms ( file_path , packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys )
243- await wordpressService ?. getAllTags ( file_path , packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys )
244- await wordpressService ?. getAllCategories ( file_path , packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys )
245- await wordpressService ?. extractPosts ( packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys )
242+ await wordpressService ?. getAllTerms ( file_path , packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys )
243+ await wordpressService ?. getAllTags ( file_path , packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys )
244+ await wordpressService ?. getAllCategories ( file_path , packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys )
245+ await wordpressService ?. extractPosts ( packagePath , project ?. current_test_stack_id , projectId , contentTypes , project ?. mapperKeys )
246246 await wordpressService ?. extractGlobalFields ( project ?. current_test_stack_id , projectId )
247247 await wordpressService ?. createVersionFile ( project ?. current_test_stack_id , projectId ) ;
248248 }
@@ -312,12 +312,12 @@ const startMigration = async (req: Request): Promise<any> => {
312312 await wordpressService ?. createAssetFolderFile ( file_path , project ?. destination_stack_id , projectId )
313313 await wordpressService ?. getAllreference ( file_path , packagePath , project ?. destination_stack_id , projectId )
314314 await wordpressService ?. extractChunks ( file_path , packagePath , project ?. destination_stack_id , projectId )
315- await wordpressService ?. getAllAuthors ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys )
315+ await wordpressService ?. getAllAuthors ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys )
316316 //await wordpressService?.extractContentTypes(projectId, project?.destination_stack_id)
317- await wordpressService ?. getAllTerms ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys )
318- await wordpressService ?. getAllTags ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys )
319- await wordpressService ?. getAllCategories ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys )
320- await wordpressService ?. extractPosts ( packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys )
317+ await wordpressService ?. getAllTerms ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys )
318+ await wordpressService ?. getAllTags ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys )
319+ await wordpressService ?. getAllCategories ( file_path , packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys )
320+ await wordpressService ?. extractPosts ( packagePath , project ?. destination_stack_id , projectId , contentTypes , project ?. mapperKeys )
321321 await wordpressService ?. extractGlobalFields ( project ?. destination_stack_id , projectId )
322322 await wordpressService ?. createVersionFile ( project ?. destination_stack_id , projectId ) ;
323323
0 commit comments