commit 64896d9521c406ca469e5f7bf5583a60221107e3
parent 507a38fe5053117dda519cc5d0a8f8accef8ab60
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Tue, 12 Dec 2023 17:04:36 -0500
cleanup
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go
@@ -1201,10 +1201,10 @@ func Refund(db *database.DkfDB) {
if account.PokerTable.IsTest {
user.ChipsTest += int(account.Amount)
}
- user.DoSave(tx)
account.Amount = 0
account.AmountBet = 0
account.DoSave(tx)
+ user.DoSave(tx)
}
}
tx.Commit()