Skip to content

Commit fe7382f

Browse files
algolia-botFluf22
andcommitted
fix(clients): update browse iterator (generated)
algolia/api-clients-automation#4058 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]>
1 parent b7a614c commit fe7382f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

algoliasearch/Utils/SearchClientExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public async Task<IEnumerable<Rule>> BrowseRulesAsync(string indexName, SearchRu
344344
var page = prevResp?.Item2 ?? 0;
345345
var searchSynonymsResponse = await SearchRulesAsync(indexName, searchRulesParams, requestOptions);
346346
return new Tuple<SearchRulesResponse, int>(searchSynonymsResponse, page + 1);
347-
}, resp => resp?.Item1 is { NbHits: < hitsPerPage }).ConfigureAwait(false);
347+
}, resp => resp?.Item1 is { Hits.Count: < hitsPerPage }).ConfigureAwait(false);
348348

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

372372
return all.SelectMany(u => u.Item1.Hits);
373373
}

0 commit comments

Comments
 (0)