Added accountUpdated() to persist updated account

This commit is contained in:
dankito 2020-08-08 19:23:50 +02:00
parent ec61aec0f7
commit ba1b0a27f0
1 changed files with 4 additions and 0 deletions

View File

@ -365,6 +365,10 @@ open class BankingPresenter(
}
open fun accountUpdated(account: Customer) {
persistAccount(account)
}
protected open fun persistAccount(customer: Customer) {
persister.saveOrUpdateAccount(customer, customers)
}