Skip to content
Snippets Groups Projects
Commit 3b0298c5 authored by michael.ramusi's avatar michael.ramusi
Browse files

default value of amount in creditAccount now is 10

parent f9f3d1b3
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,7 @@ public class http { ...@@ -69,7 +69,7 @@ public class http {
@RequestMapping("/creditAccount") @RequestMapping("/creditAccount")
public String createAccount( public String createAccount(
@RequestParam(value = "idAccount", defaultValue = "1") int idAccount, @RequestParam(value = "idAccount", defaultValue = "1") int idAccount,
@RequestParam(value = "amount", defaultValue = "1") double amount) { @RequestParam(value = "amount", defaultValue = "10") double amount) {
http.incrementId(); http.incrementId();
accountService.send(new EventCreditAnAccount(http.getId(), "Crediting account", idAccount, amount)); accountService.send(new EventCreditAnAccount(http.getId(), "Crediting account", idAccount, amount));
return null; return null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment