fix: message insuffition coins fix

This commit is contained in:
2026-07-05 19:05:44 +03:30
parent 045e304853
commit ac6e8695b1
+1 -1
View File
@@ -441,7 +441,7 @@ func (h *Hub) enqueue(c *Client, tier string) {
} }
// کسر ورودی میز؛ اگر سکه کافی نبود، اجازه ورود به صف داده نمی‌شود. // کسر ورودی میز؛ اگر سکه کافی نبود، اجازه ورود به صف داده نمی‌شود.
if err := h.settler.ChargeEntry(c.UserID, tier); err != nil { if err := h.settler.ChargeEntry(c.UserID, tier); err != nil {
c.trySend(mustJSON(errorMsg{Type: "error", Message: "insufficient coins"})) c.trySend(mustJSON(errorMsg{Type: "error", Message: "موجودی سکه برای ورود به این میز کافی نیست"}))
return return
} }
c.tier = tier c.tier = tier