Skip to content

Commit

Permalink
fix(clients): update browse iterator (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4058

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Thomas Raffray <[email protected]>
  • Loading branch information
algolia-bot and Fluf22 committed Oct 31, 2024
1 parent b7a614c commit fe7382f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions algoliasearch/Utils/SearchClientExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public async Task<IEnumerable<Rule>> BrowseRulesAsync(string indexName, SearchRu
var page = prevResp?.Item2 ?? 0;
var searchSynonymsResponse = await SearchRulesAsync(indexName, searchRulesParams, requestOptions);
return new Tuple<SearchRulesResponse, int>(searchSynonymsResponse, page + 1);
}, resp => resp?.Item1 is { NbHits: < hitsPerPage }).ConfigureAwait(false);
}, resp => resp?.Item1 is { Hits.Count: < hitsPerPage }).ConfigureAwait(false);

return all.SelectMany(u => u.Item1.Hits);
}
Expand All @@ -367,7 +367,7 @@ public async Task<IEnumerable<SynonymHit>> BrowseSynonymsAsync(string indexName,
var searchSynonymsResponse = await SearchSynonymsAsync(indexName, synonymsParams, requestOptions);
page = page + 1;
return new Tuple<SearchSynonymsResponse, int>(searchSynonymsResponse, page);
}, resp => resp?.Item1 is { NbHits: < hitsPerPage }).ConfigureAwait(false);
}, resp => resp?.Item1 is { Hits.Count: < hitsPerPage }).ConfigureAwait(false);

return all.SelectMany(u => u.Item1.Hits);
}
Expand Down

0 comments on commit fe7382f

Please sign in to comment.