diff --git a/src/main/kotlin/com/cubetiqs/demo/axon/api/AccountCommandController.kt b/src/main/kotlin/com/cubetiqs/demo/axon/api/AccountCommandController.kt index 507c6e5..5c89b1c 100644 --- a/src/main/kotlin/com/cubetiqs/demo/axon/api/AccountCommandController.kt +++ b/src/main/kotlin/com/cubetiqs/demo/axon/api/AccountCommandController.kt @@ -40,7 +40,7 @@ class AccountCommandController @Autowired constructor( fun debitMoneyFromAccount( @PathVariable(value = "accountId") accountId: String, @RequestBody moneyDebitDTO: MoneyAmountDTO - ): CompletableFuture? { + ): CompletableFuture { return this.accountCommandService.debitMoneyFromAccount(accountId, moneyDebitDTO) } } \ No newline at end of file