dkforest

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

commit 80d28ed9212bb55236fb28ae94121f00fff500ff
parent 8a6ac5c75a892d0a24957e18dc064120339fdc56
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Mon, 18 Dec 2023 15:49:17 -0500

cleanup

Diffstat:
Mpkg/database/tablePokerTables.go | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pkg/database/tablePokerTables.go b/pkg/database/tablePokerTables.go @@ -63,7 +63,6 @@ type PokerTableAccount struct { PokerTableID int64 Amount PokerChip AmountBet PokerChip - PokerTable PokerTable } func (a *PokerTableAccount) Save(db *DkfDB) error { @@ -82,7 +81,7 @@ func (d *DkfDB) GetPositivePokerTableAccounts() (out []PokerTableAccount, err er } func (d *DkfDB) GetPokerTableAccount(userID UserID, pokerTableID int64) (out PokerTableAccount, err error) { - if err = d.db.Preload("PokerTable").First(&out, "user_id = ? AND poker_table_id = ?", userID, pokerTableID).Error; err != nil { + if err = d.db.First(&out, "user_id = ? AND poker_table_id = ?", userID, pokerTableID).Error; err != nil { out = PokerTableAccount{UserID: userID, PokerTableID: pokerTableID} err = d.db.Create(&out).Error }