Skip to content

Commit 92cb2bb

Browse files
fix(specs): returns an response [skip-bc] (generated)
algolia/api-clients-automation#4107 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent e909d7e commit 92cb2bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/algoliasearch/api/SearchClient.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ class SearchClient(
546546
*/
547547
def deleteBy(indexName: String, deleteByParams: DeleteByParams, requestOptions: Option[RequestOptions] = None)(
548548
implicit ec: ExecutionContext
549-
): Future[DeletedAtResponse] = Future {
549+
): Future[UpdatedAtResponse] = Future {
550550
requireNotNull(indexName, "Parameter `indexName` is required when calling `deleteBy`.")
551551
requireNotNull(deleteByParams, "Parameter `deleteByParams` is required when calling `deleteBy`.")
552552

@@ -556,7 +556,7 @@ class SearchClient(
556556
.withPath(s"/1/indexes/${escape(indexName)}/deleteByQuery")
557557
.withBody(deleteByParams)
558558
.build()
559-
execute[DeletedAtResponse](request, requestOptions)
559+
execute[UpdatedAtResponse](request, requestOptions)
560560
}
561561

562562
/** Deletes an index and all its settings. - Deleting an index doesn't delete its analytics data. - If you try to

0 commit comments

Comments
 (0)