Исправил ошибку, надеюсь

This commit is contained in:
unknown
2025-12-06 12:16:25 +03:00
parent ead48389b7
commit 26b2bd5fdf
2 changed files with 17 additions and 42 deletions

View File

@@ -78,7 +78,7 @@ async def _fetch_user_and_subs(telegram_id: int):
if not user or not isinstance(user, dict):
return None, []
user_id = user["telegram_id"]
user_id = user["id"]
subs = await call_api("GET", f"/subscriptions/{user_id}")
if subs == "ERROR" or not isinstance(subs, list):