Skip to content

Commit

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

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Nov 26, 2024
1 parent 7e67c79 commit 4ed6f86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 54 deletions.
5 changes: 2 additions & 3 deletions src/main/scala/algoliasearch/api/SearchClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ import algoliasearch.search.SynonymHit
import algoliasearch.search.UpdateApiKeyResponse
import algoliasearch.search.UpdatedAtResponse
import algoliasearch.search.UpdatedAtWithObjectIdResponse
import algoliasearch.search.UpdatedRuleResponse
import algoliasearch.search.UserId
import algoliasearch.search._
import algoliasearch.ApiClient
Expand Down Expand Up @@ -1363,7 +1362,7 @@ class SearchClient(
rule: Rule,
forwardToReplicas: Option[Boolean] = None,
requestOptions: Option[RequestOptions] = None
)(implicit ec: ExecutionContext): Future[UpdatedRuleResponse] = Future {
)(implicit ec: ExecutionContext): Future[UpdatedAtResponse] = Future {
requireNotNull(indexName, "Parameter `indexName` is required when calling `saveRule`.")
requireNotNull(objectID, "Parameter `objectID` is required when calling `saveRule`.")
requireNotNull(rule, "Parameter `rule` is required when calling `saveRule`.")
Expand All @@ -1375,7 +1374,7 @@ class SearchClient(
.withBody(rule)
.withQueryParameter("forwardToReplicas", forwardToReplicas)
.build()
execute[UpdatedRuleResponse](request, requestOptions)
execute[UpdatedAtResponse](request, requestOptions)
}

/** Create or update multiple rules. If a rule with the specified object ID doesn't exist, Algolia creates a new one.
Expand Down
51 changes: 0 additions & 51 deletions src/main/scala/algoliasearch/search/UpdatedRuleResponse.scala

This file was deleted.

0 comments on commit 4ed6f86

Please sign in to comment.