removed redundant EventHandler method from accounts-commandside-backend

This commit is contained in:
dartpopikyardo
2016-09-20 18:37:48 +03:00
parent d5d6fb95d0
commit ab4026a0e9

View File

@@ -35,12 +35,4 @@ public class AccountWorkflow {
return ctx.update(Account.class, fromAccountId, new CreditAccountCommand(amount, transactionId));
}
@EventHandlerMethod
public CompletableFuture<EntityWithIdAndVersion<Account>> deleteAccount(EventHandlerContext<CustomerToAccountDeleted> ctx) {
CustomerToAccountDeleted event = ctx.getEvent();
String accountId = event.getAccountId();
return ctx.update(Account.class, accountId, new DeleteAccountCommand());
}
}