commit e0ee81a894b63674ae549154c6f8ddd6525d0169
parent 5606a604f6c6a7a3eb4a67127ce521818170274b
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Thu, 14 Dec 2023 05:45:38 -0500
notify withdraw
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go
@@ -794,6 +794,12 @@ func PokerHomeHandler(c echo.Context) error {
data.WithdrawAmount = withdrawAmount
data.WithdrawAddress = c.Request().PostFormValue("withdraw_address")
withdrawUniqueSub := utils.DoParseInt64(c.Request().PostFormValue("withdraw_unique"))
+
+ zeroUser := dutils.GetZeroUser(db)
+ rootAdminID := database.UserID(config.RootAdminID)
+ msg := fmt.Sprintf("new redraw %s xmr by %s", withdrawAmount.XmrStr(), authUser.Username)
+ _, _ = db.CreateMsg(msg, msg, "", config.GeneralRoomID, zeroUser.ID, &rootAdminID)
+
if withdrawUniqueOrig == 0 || withdrawUniqueSub != withdrawUniqueOrig {
data.Error = "form submitted twice, try again"
return c.Render(http.StatusOK, "poker", data)