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

fixed bug

parent b8c30874
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ public class AccountService{
//------------------------------------------
if (obj instanceof EventCreateAccount){
EventCreateAccount e = (EventCreateAccount) obj;
accountsDB.addAccount(new Account(accountsDB.nextID(), e.msg(), 0.0));
accountsDB.addAccount(new Account(accountsDB.nextID(), e.name(), 0.0));
send(new EventAccountCreated(e.id(), "The account is created"));
System.out.println(e.toString());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment