Skip to content

Commit 9707a87

Browse files
algolia-botmillotp
andcommitted
fix(specs): getObject return object (generated)
algolia/api-clients-automation#3446 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent a1f5e05 commit 9707a87

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
@@ -826,7 +826,7 @@ class SearchClient(
826826
objectID: String,
827827
attributesToRetrieve: Option[Seq[String]] = None,
828828
requestOptions: Option[RequestOptions] = None
829-
)(implicit ec: ExecutionContext): Future[Map[String, String]] = Future {
829+
)(implicit ec: ExecutionContext): Future[Any] = Future {
830830
requireNotNull(indexName, "Parameter `indexName` is required when calling `getObject`.")
831831
requireNotNull(objectID, "Parameter `objectID` is required when calling `getObject`.")
832832

@@ -836,7 +836,7 @@ class SearchClient(
836836
.withPath(s"/1/indexes/${escape(indexName)}/${escape(objectID)}")
837837
.withQueryParameter("attributesToRetrieve", attributesToRetrieve)
838838
.build()
839-
execute[Map[String, String]](request, requestOptions)
839+
execute[Any](request, requestOptions)
840840
}
841841

842842
/** Retrieves one or more records, potentially from different indices. Records are returned in the same order as the

0 commit comments

Comments
 (0)