Skip to content

Commit f908a0a

Browse files
algolia-botFluf22
andcommitted
feat(scala): missing helpers (generated)
algolia/api-clients-automation#4486 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]>
1 parent 67aaca2 commit f908a0a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Sources/Search/Extra/SearchClientExtension.swift

+5-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,11 @@ public extension SearchClient {
456456

457457
if waitForTasks {
458458
for batchResponse in responses {
459-
try await self.waitForTask(indexName: indexName, taskID: batchResponse.taskID)
459+
try await self.waitForTask(
460+
indexName: indexName,
461+
taskID: batchResponse.taskID,
462+
requestOptions: requestOptions
463+
)
460464
}
461465
}
462466

Sources/Search/Extra/SecuredApiKeyRestrictionExtension.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public extension SecuredApiKeyRestrictions {
2323
queryDictionary["filters"] = filters
2424
}
2525
if let validUntil {
26-
queryDictionary["validUntil"] = Int(validUntil)
26+
queryDictionary["validUntil"] = validUntil
2727
}
2828
if let restrictIndices {
2929
queryDictionary["restrictIndices"] = restrictIndices

0 commit comments

Comments
 (0)