diff --git a/rest-api/src/main/scala/za/co/absa/enceladus/rest_api/controllers/VersionedModelController.scala b/rest-api/src/main/scala/za/co/absa/enceladus/rest_api/controllers/VersionedModelController.scala index 9f6bf5756..978d51b72 100644 --- a/rest-api/src/main/scala/za/co/absa/enceladus/rest_api/controllers/VersionedModelController.scala +++ b/rest-api/src/main/scala/za/co/absa/enceladus/rest_api/controllers/VersionedModelController.scala @@ -70,7 +70,7 @@ abstract class VersionedModelController[C <: VersionedModel with Product with Au @GetMapping(Array("/detail/{name}/latestVersion")) @ResponseStatus(HttpStatus.OK) - def getLatestVersionNumber(@PathVariable name: String): Future[Int] = { + def getLatestVersionNumber(@PathVariable name: String): CompletableFuture[Int] = { versionedModelService.getLatestVersionNumber(name) }