diff options
author | MS <ms@taler.net> | 2023-07-25 19:54:45 +0200 |
---|---|---|
committer | MS <ms@taler.net> | 2023-07-25 19:54:45 +0200 |
commit | 934a73b09b9e9abba348e15ddc058df5bb9cd6a3 (patch) | |
tree | 1d4a5b97c1cbb806977cf726c96b8358ba7cee1d /sandbox/src/main/kotlin/tech/libeufin | |
parent | 54717e5c9630a5ed8bec955f06ba4e2359e20dfc (diff) | |
download | libeufin-934a73b09b9e9abba348e15ddc058df5bb9cd6a3.tar.gz libeufin-934a73b09b9e9abba348e15ddc058df5bb9cd6a3.tar.bz2 libeufin-934a73b09b9e9abba348e15ddc058df5bb9cd6a3.zip |
DB sync.
Diffstat (limited to 'sandbox/src/main/kotlin/tech/libeufin')
-rw-r--r-- | sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt index 237ae5f1..dc361a52 100644 --- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt +++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt @@ -228,6 +228,8 @@ fun wireTransfer( } // Adjusting the balances (acceptable debit conditions checked before). + debitAccount.refresh() + creditAccount.refresh() // Debit: val newDebitBalance = (BigDecimal(debitAccount.balance) - amountAsNumber).roundToTwoDigits() debitAccount.balance = newDebitBalance.toPlainString() // FIXME: that's ignored! |