@@ -234,17 +234,17 @@ const startTestMigration = async (req: Request): Promise<any> => {
234234 }
235235 case CMS . WORDPRESS : {
236236 if ( packagePath ) {
237- await wordpressService ?. getAllAssets ( affix , packagePath , project ?. current_test_stack_id )
238- await wordpressService ?. createAssetFolderFile ( affix )
239- await wordpressService ?. getAllreference ( affix , packagePath , project ?. current_test_stack_id )
240- await wordpressService ?. extractChunks ( affix , packagePath , project ?. current_test_stack_id )
241- await wordpressService ?. getAllAuthors ( affix , packagePath )
242- await wordpressService ?. extractContentTypes ( affix , project ?. current_test_stack_id )
243- await wordpressService ?. getAllTerms ( affix , packagePath )
244- await wordpressService ?. getAllTags ( affix , packagePath )
245- await wordpressService ?. getAllCategories ( affix , packagePath )
246- await wordpressService ?. extractPosts ( affix , packagePath )
247- await wordpressService ?. extractGlobalFields ( project ?. current_test_stack_id )
237+ await wordpressService ?. getAllAssets ( affix , packagePath , project ?. current_test_stack_id , projectId )
238+ await wordpressService ?. createAssetFolderFile ( affix , project ?. current_test_stack_id , projectId )
239+ await wordpressService ?. getAllreference ( affix , packagePath , project ?. current_test_stack_id , projectId )
240+ await wordpressService ?. extractChunks ( affix , packagePath , project ?. current_test_stack_id , projectId )
241+ await wordpressService ?. getAllAuthors ( affix , packagePath , project ?. current_test_stack_id , projectId )
242+ // await wordpressService?.extractContentTypes(affix, project?.current_test_stack_id)
243+ await wordpressService ?. getAllTerms ( affix , packagePath , project ?. current_test_stack_id , projectId )
244+ await wordpressService ?. getAllTags ( affix , packagePath , project ?. current_test_stack_id , projectId )
245+ await wordpressService ?. getAllCategories ( affix , packagePath , project ?. current_test_stack_id , projectId )
246+ await wordpressService ?. extractPosts ( affix , packagePath , project ?. current_test_stack_id , projectId )
247+ await wordpressService ?. extractGlobalFields ( project ?. current_test_stack_id , projectId )
248248 }
249249 break ;
250250 }
@@ -297,17 +297,17 @@ const startMigration = async (req: Request): Promise<any> => {
297297 }
298298 case CMS . WORDPRESS : {
299299 if ( packagePath ) {
300- await wordpressService ?. getAllAssets ( affix , packagePath , project ?. current_test_stack_id )
301- await wordpressService ?. createAssetFolderFile ( affix )
302- await wordpressService ?. getAllreference ( affix , packagePath , project ?. current_test_stack_id )
303- await wordpressService ?. extractChunks ( affix , packagePath , project ?. current_test_stack_id )
304- await wordpressService ?. getAllAuthors ( affix , packagePath )
305- await wordpressService ?. extractContentTypes ( affix , project ?. current_test_stack_id )
306- await wordpressService ?. getAllTerms ( affix , packagePath )
307- await wordpressService ?. getAllTags ( affix , packagePath )
308- await wordpressService ?. getAllCategories ( affix , packagePath )
309- await wordpressService ?. extractPosts ( affix , packagePath )
310- await wordpressService ?. extractGlobalFields ( project ?. current_test_stack_id )
300+ await wordpressService ?. getAllAssets ( affix , packagePath , project ?. current_test_stack_id , projectId )
301+ await wordpressService ?. createAssetFolderFile ( affix , project ?. current_test_stack_id , projectId )
302+ await wordpressService ?. getAllreference ( affix , packagePath , project ?. current_test_stack_id , projectId )
303+ await wordpressService ?. extractChunks ( affix , packagePath , project ?. current_test_stack_id , projectId )
304+ await wordpressService ?. getAllAuthors ( affix , packagePath , project ?. current_test_stack_id , projectId )
305+ // await wordpressService?.extractContentTypes(affix, project?.current_test_stack_id)
306+ await wordpressService ?. getAllTerms ( affix , packagePath , project ?. current_test_stack_id , projectId )
307+ await wordpressService ?. getAllTags ( affix , packagePath , project ?. current_test_stack_id , projectId )
308+ await wordpressService ?. getAllCategories ( affix , packagePath , project ?. current_test_stack_id , projectId )
309+ await wordpressService ?. extractPosts ( affix , packagePath , project ?. current_test_stack_id , projectId )
310+ await wordpressService ?. extractGlobalFields ( project ?. current_test_stack_id , projectId )
311311 }
312312 break ;
313313 }
0 commit comments