mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 17:56:46 +00:00
Add missing save call to update account balance
This commit is contained in:
parent
1abdb1cd90
commit
fa3b677672
@ -121,6 +121,7 @@ object CashAccountAPI extends RestHelper with Loggable {
|
||||
val env = OBPEnvelope.createRecord.
|
||||
obp_transaction(transaction)
|
||||
account.accountBalance(account.balance + amount).lastUpdate(now)
|
||||
account.save
|
||||
env.save
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user