@@ -920,26 +920,24 @@ export default class EntriesImport extends BaseClass {
920920 apiContentDuplicate . push ( c2 ) ;
921921 } ) ;
922922 } ) ;
923- for ( let i = 0 ; i < apiContentDuplicate . length ; i ++ ) {
924- let apiContent = [ apiContentDuplicate [ i ] ] ;
925- await this . makeConcurrentCall ( {
926- apiContent,
927- processName,
928- indexerCount,
929- currentIndexer : + index ,
930- apiParams : {
931- reject : onReject ,
932- resolve : onSuccess ,
933- entity : 'publish-entries' ,
934- includeParamOnCompletion : true ,
935- serializeData : this . serializePublishEntries . bind ( this ) ,
936- additionalInfo : { contentType, locale : apiContentDuplicate [ i ] ?. locale , cTUid } ,
937- } ,
938- concurrencyLimit : this . importConcurrency ,
939- } ) . then ( ( ) => {
940- log ( this . importConfig , `Published entries for content type ${ cTUid } in locale ${ locale } ` , 'success' ) ;
941- } ) ;
942- }
923+ apiContent = apiContentDuplicate ;
924+ await this . makeConcurrentCall ( {
925+ apiContent,
926+ processName,
927+ indexerCount,
928+ currentIndexer : + index ,
929+ apiParams : {
930+ reject : onReject ,
931+ resolve : onSuccess ,
932+ entity : 'publish-entries' ,
933+ includeParamOnCompletion : true ,
934+ serializeData : this . serializePublishEntries . bind ( this ) ,
935+ additionalInfo : { contentType, locale, cTUid } ,
936+ } ,
937+ concurrencyLimit : this . importConcurrency ,
938+ } ) . then ( ( ) => {
939+ log ( this . importConfig , `Published entries for content type ${ cTUid } in locale ${ locale } ` , 'success' ) ;
940+ } ) ;
943941 }
944942 }
945943 }
0 commit comments