commit cdbdb706b21026f47b4d109abe8436356c4bc830 parent 5efa007bea2088e87bcb2ea88df890a6b6016f40 Author: n0tr1v <n0tr1v@protonmail.com> Date: Thu, 14 Dec 2023 01:01:27 -0500 simplify code Diffstat:
| M | pkg/actions/actions.go | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/pkg/actions/actions.go b/pkg/actions/actions.go @@ -242,10 +242,11 @@ func xmrWatch(db *database.DkfDB) { continue } tx := db.Begin() + if err := user.IncrXmrBalanceStagenet(tx, pokerTransfer.Amount); err != nil { + logrus.Error(err) + } pokerTransfer.Processed = true - user.XmrBalanceStagenet += pokerTransfer.Amount pokerTransfer.DoSave(tx) - user.DoSave(tx) tx.Commit() continue } else {