Skip to content

Commit cc160af

Browse files
algolia-botFluf22
andcommitted
feat(kotlin): add browse helpers (#4059) (generated) [skip ci]
Co-authored-by: Thomas Raffray <[email protected]>
1 parent b3804d7 commit cc160af

File tree

1 file changed

+5
-5
lines changed
  • clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/extensions

1 file changed

+5
-5
lines changed

clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/extensions/SearchClient.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ public suspend fun SearchClient.browseObjects(
607607
browse(
608608
indexName,
609609
params.copy(hitsPerPage = params.hitsPerPage ?: 1000, cursor = previousResponse?.cursor),
610-
requestOptions
610+
requestOptions,
611611
)
612612
},
613613
validate = validate,
@@ -639,9 +639,9 @@ public suspend fun SearchClient.browseRules(
639639
indexName,
640640
searchRulesParams.copy(
641641
page = if (previousResponse != null) (previousResponse.page + 1) else 0,
642-
hitsPerPage = hitsPerPage
642+
hitsPerPage = hitsPerPage,
643643
),
644-
requestOptions
644+
requestOptions,
645645
)
646646
},
647647
validate = validate ?: { response -> response.hits.count() < hitsPerPage },
@@ -675,9 +675,9 @@ public suspend fun SearchClient.browseSynonyms(
675675
indexName,
676676
searchSynonymsParams = searchSynonymsParams.copy(
677677
page = page,
678-
hitsPerPage = hitsPerPage
678+
hitsPerPage = hitsPerPage,
679679
),
680-
requestOptions
680+
requestOptions,
681681
)
682682
} finally {
683683
page += 1

0 commit comments

Comments
 (0)