Skip to content

Commit

Permalink
chore: generated code for commit 92cd1c79. [skip ci]
Browse files Browse the repository at this point in the history
algolia/api-clients-automation@92cd1c7

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Feb 21, 2024
1 parent 6e397ba commit e151071
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/client-search/src/searchClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,19 +435,19 @@ export function createSearchClient({
};

return createIterablePromise<SearchSynonymsResponse>({
func: (previousResponse) => {
return this.searchSynonyms(
func: (_) => {
const resp = this.searchSynonyms(
{
indexName,
searchSynonymsParams: {
...params,
page: previousResponse
? previousResponse.page + 1
: params.page,
page: params.page,
},
},
requestOptions
);
params.page += 1;
return resp;
},
validate: (response) => response.nbHits < params.hitsPerPage,
...browseSynonymsOptions,
Expand Down

0 comments on commit e151071

Please sign in to comment.