dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit bd7a0af115da5ad1e9c8a69852c39b660a7b3fb5
parent e69914a4af5083ca6f18873a96ed4350162871cb
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri, 15 Dec 2023 02:42:31 -0500

fix bug

Diffstat:
Mpkg/web/handlers/handlers.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -866,7 +866,7 @@ func PokerHomeHandler(c echo.Context) error { dutils.RootAdminNotify(db, fmt.Sprintf("new withdraw %s xmr by %s", withdrawAmount.XmrStr(), authUser.Username)) tx := db.Begin() - if err := authUser.SubXmrBalance(db, withdrawAmount+transactionFee); err != nil { + if err := authUser.SubXmrBalance(tx, withdrawAmount+transactionFee); err != nil { data.Error = err.Error() tx.Rollback() return c.Render(http.StatusOK, "poker", data)