Skip to content

Commit 6820f87

Browse files
committed
chore: goood
1 parent d503f07 commit 6820f87

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clients/algoliasearch-client-swift/Sources/Search/Extra/SearchClientExtension.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import Core
1010
#endif
1111
import Foundation
12-
import enum Search.Action
1312

1413
public extension SearchClient {
1514
/// Wait for a task to complete
@@ -427,7 +426,7 @@ public extension SearchClient {
427426
func chunkedBatch(
428427
indexName: String,
429428
objects: [some Encodable],
430-
action: Action = .addObject,
429+
action: SearchAction = .addObject,
431430
waitForTasks: Bool = false,
432431
batchSize: Int = 1000,
433432
requestOptions: RequestOptions? = nil
@@ -440,7 +439,7 @@ public extension SearchClient {
440439
for batch in batches {
441440
let batchResponse = try await self.batch(
442441
indexName: indexName,
443-
batchWriteParams: BatchWriteParams(
442+
batchWriteParams: SearchBatchWriteParams(
444443
requests: batch.map {
445444
.init(action: action, body: AnyCodable($0))
446445
}

0 commit comments

Comments
 (0)