fix: fix transfer

This commit is contained in:
2024-09-25 15:07:57 +08:00
parent ae5f60df41
commit 4a9483bf12
1 file changed
+1 -1
@@ -76,7 +76,7 @@ class NiuziBankManager {
suspend fun transfer(from: Long, target: Long, amount: Double): NiuziBankAccount? {
suspendedTransaction {
this.decreaseBalance(from, -amount)
this.decreaseBalance(from, amount)
this.increaseBalance(target, amount)
}
return this.getUser(from)