Skip to content

Commit df6aff0

Browse files
committed
fix: scala
1 parent 6c1c1df commit df6aff0

File tree

1 file changed

+6
-6
lines changed
  • clients/algoliasearch-client-scala/src/main/scala/algoliasearch/extension

1 file changed

+6
-6
lines changed

clients/algoliasearch-client-scala/src/main/scala/algoliasearch/extension/package.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,10 @@ package object extension {
261261
def saveObjects(
262262
indexName: String,
263263
objects: Seq[Any],
264-
waitForTask: Boolean = false,
264+
waitForTasks: Boolean = false,
265265
requestOptions: Option[RequestOptions] = None
266266
)(implicit ec: ExecutionContext): Future[Seq[BatchResponse]] = {
267-
chunkedBatch(indexName, objects, Action.AddObject, waitForTask, 1000, requestOptions)
267+
chunkedBatch(indexName, objects, Action.AddObject, waitForTasks, 1000, requestOptions)
268268
}
269269

270270
/** Helper: Deletes every objects for the given objectIDs. The `chunkedBatch` helper is used under the hood, which
@@ -284,14 +284,14 @@ package object extension {
284284
def deleteObjects(
285285
indexName: String,
286286
objectIDs: Seq[String],
287-
waitForTask: Boolean = false,
287+
waitForTasks: Boolean = false,
288288
requestOptions: Option[RequestOptions] = None
289289
)(implicit ec: ExecutionContext): Future[Seq[BatchResponse]] = {
290290
chunkedBatch(
291291
indexName,
292292
objectIDs.map(id => new { val objectID: String = id }),
293293
Action.DeleteObject,
294-
waitForTask,
294+
waitForTasks,
295295
1000,
296296
requestOptions
297297
)
@@ -317,14 +317,14 @@ package object extension {
317317
indexName: String,
318318
objects: Seq[Any],
319319
createIfNotExists: Boolean = false,
320-
waitForTask: Boolean = false,
320+
waitForTasks: Boolean = false,
321321
requestOptions: Option[RequestOptions] = None
322322
)(implicit ec: ExecutionContext): Future[Seq[BatchResponse]] = {
323323
chunkedBatch(
324324
indexName,
325325
objects,
326326
if (createIfNotExists) Action.PartialUpdateObject else Action.PartialUpdateObjectNoCreate,
327-
waitForTask,
327+
waitForTasks,
328328
1000,
329329
requestOptions
330330
)

0 commit comments

Comments
 (0)