@@ -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