fix refferal system

This commit is contained in:
Vladless
2025-03-07 00:51:02 +03:00
parent 7b9fc32715
commit 20ccabb228
3 changed files with 5 additions and 8 deletions
+3
View File
@@ -672,6 +672,9 @@ async def handle_referral_on_balance_update(tg_id: int, amount: float):
tg_id (int): Идентификатор Telegram пользователя, пополнившего баланс
amount (float): Сумма пополнения баланса
"""
if amount <= 0:
return
conn = None
try:
conn = await asyncpg.connect(DATABASE_URL)