diff --git a/src/modules/marketplaces/marketplaces-reindex.service.ts b/src/modules/marketplaces/marketplaces-reindex.service.ts index 9652ea0ba..6f0100c74 100644 --- a/src/modules/marketplaces/marketplaces-reindex.service.ts +++ b/src/modules/marketplaces/marketplaces-reindex.service.ts @@ -268,8 +268,18 @@ export class MarketplacesReindexService { ); } + const areMultipleMarketplaces = marketplaceReindexStates.length !== 1; + for (let i = 0; i < eventsSetSummaries?.length; i++) { try { + if (!areMultipleMarketplaces) { + await this.processEvent( + marketplaceReindexStates[0], + eventsSetSummaries[i], + ); + continue; + } + const stateIndex = marketplaceReindexStates.findIndex((s) => s.isCollectionListed(eventsSetSummaries[i].collection), );