Skip to content

Commit

Permalink
fix(specs): returns an response [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4107

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Nov 15, 2024
1 parent e909d7e commit 92cb2bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/algoliasearch/api/SearchClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ class SearchClient(
*/
def deleteBy(indexName: String, deleteByParams: DeleteByParams, requestOptions: Option[RequestOptions] = None)(
implicit ec: ExecutionContext
): Future[DeletedAtResponse] = Future {
): Future[UpdatedAtResponse] = Future {
requireNotNull(indexName, "Parameter `indexName` is required when calling `deleteBy`.")
requireNotNull(deleteByParams, "Parameter `deleteByParams` is required when calling `deleteBy`.")

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

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

0 comments on commit 92cb2bb

Please sign in to comment.