chore: annotate XTR provider_token and add missing return type

This commit is contained in:
3252a8
2026-04-27 08:43:54 +03:00
parent d6b703debb
commit 4740666d63
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2472,7 +2472,7 @@ async def _create_stars_payment(
title=description,
description=description,
payload=payload,
provider_token="",
provider_token="", # Required to be empty for Telegram Stars (XTR) per Telegram Bot API.
currency="XTR",
prices=prices,
)
+1 -1
View File
@@ -130,7 +130,7 @@ async def upsert_subscription(session: AsyncSession,
async def deactivate_other_active_subscriptions(
session: AsyncSession, panel_user_uuid: str,
current_panel_subscription_uuid: Optional[str]):
current_panel_subscription_uuid: Optional[str]) -> None:
stmt = (update(Subscription).where(
Subscription.panel_user_uuid == panel_user_uuid,
Subscription.is_active == True,