diff --git a/src/VirtoCommerce.PricingModule.Data/Search/ProductPriceDocumentBuilder.cs b/src/VirtoCommerce.PricingModule.Data/Search/ProductPriceDocumentBuilder.cs index 709a40ce..9d444f84 100644 --- a/src/VirtoCommerce.PricingModule.Data/Search/ProductPriceDocumentBuilder.cs +++ b/src/VirtoCommerce.PricingModule.Data/Search/ProductPriceDocumentBuilder.cs @@ -158,7 +158,7 @@ private async Task> GetVariationIds(string productId) searchCriteria.ResponseGroup = ItemResponseGroup.ItemInfo.ToString(); searchCriteria.Take = _batchSize; - await foreach (var searchResult in _productsSearchService.SearchBatches(searchCriteria)) + await foreach (var searchResult in _productsSearchService.SearchBatchesAsync(searchCriteria)) { variationIds.AddRange(searchResult.Results.Select(x => x.Id)); }