Некоторые поправки что бы всё работало

This commit is contained in:
2025-12-05 15:47:17 +03:00
parent f16cb3bc2e
commit 574d2094e5
3 changed files with 55 additions and 26 deletions

View File

@@ -123,6 +123,7 @@ class PostgresRepository:
select(Subscription)
.where(Subscription.user_id == user_telegram_id)
.order_by(desc(Subscription.created_at))
.options(joinedload(Subscription.plan))
.limit(1)
)
subscription = result.scalars().first()