dkforest

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

commit a3aa827e8226f0c4c8b527ab198ffb2ef38391bd
parent ecdd89fecdc47646c5546a70fcd800123ca0196d
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Mon, 18 Dec 2023 15:05:34 -0500

cleanup

Diffstat:
Mpkg/database/tableUsers.go | 2+-
Mpkg/web/handlers/handlers.go | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/database/tableUsers.go b/pkg/database/tableUsers.go @@ -673,7 +673,7 @@ func (u *User) GetImage() (image.Image, error) { return b, nil } -func (d *DkfDB) GetBalances(userID UserID) (xmrBalance Piconero, chipsTest PokerChip, err error) { +func (d *DkfDB) GetUserBalances(userID UserID) (xmrBalance Piconero, chipsTest PokerChip, err error) { var tmp struct { XmrBalance Piconero ChipsTest PokerChip diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -862,7 +862,7 @@ func PokerHomeHandler(c echo.Context) error { if playerBuyIn > pokerTable.MaxBuyIn { return errors.New("buy in too high") } - xmrBalance, chipsTestBalance, err := tx.GetBalances(authUser.ID) + xmrBalance, chipsTestBalance, err := tx.GetUserBalances(authUser.ID) if err != nil { return errors.New("failed to get user's balance") }