mirror of
https://github.com/BEDOLAGA-DEV/remnawave-bedolaga-telegram-bot.git
synced 2026-01-20 03:40:26 +00:00
Update miniapp.py
This commit is contained in:
@@ -5335,13 +5335,13 @@ async def submit_subscription_renewal_endpoint(
|
||||
new_end_date = subscription.end_date
|
||||
|
||||
# Записываем транзакцию
|
||||
from app.database.models import TransactionType
|
||||
await create_transaction(
|
||||
db,
|
||||
user_id=user.id,
|
||||
type=TransactionType.SUBSCRIPTION_PAYMENT,
|
||||
amount_kopeks=-final_total,
|
||||
transaction_type="renewal",
|
||||
description=description,
|
||||
subscription_id=subscription.id,
|
||||
)
|
||||
|
||||
await db.commit()
|
||||
|
||||
Reference in New Issue
Block a user