chore: annotate XTR provider_token and add missing return type
This commit is contained in:
@@ -2472,7 +2472,7 @@ async def _create_stars_payment(
|
|||||||
title=description,
|
title=description,
|
||||||
description=description,
|
description=description,
|
||||||
payload=payload,
|
payload=payload,
|
||||||
provider_token="",
|
provider_token="", # Required to be empty for Telegram Stars (XTR) per Telegram Bot API.
|
||||||
currency="XTR",
|
currency="XTR",
|
||||||
prices=prices,
|
prices=prices,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ async def upsert_subscription(session: AsyncSession,
|
|||||||
|
|
||||||
async def deactivate_other_active_subscriptions(
|
async def deactivate_other_active_subscriptions(
|
||||||
session: AsyncSession, panel_user_uuid: str,
|
session: AsyncSession, panel_user_uuid: str,
|
||||||
current_panel_subscription_uuid: Optional[str]):
|
current_panel_subscription_uuid: Optional[str]) -> None:
|
||||||
stmt = (update(Subscription).where(
|
stmt = (update(Subscription).where(
|
||||||
Subscription.panel_user_uuid == panel_user_uuid,
|
Subscription.panel_user_uuid == panel_user_uuid,
|
||||||
Subscription.is_active == True,
|
Subscription.is_active == True,
|
||||||
|
|||||||
Reference in New Issue
Block a user