fix: fix transfer
This commit is contained in:
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)
|
||||
|
||||
Reference in New Issue
Block a user