fix improve server sync filtering / tariff update logic

This commit is contained in:
Capybara-z
2025-10-25 02:10:28 +03:00
parent 04bfd537a2
commit d6152bc3fd
2 changed files with 46 additions and 6 deletions
+7
View File
@@ -700,6 +700,13 @@ async def handle_user_renew_confirm(
stmt = update(Key).where(Key.tg_id == tg_id, Key.email == email).values(tariff_id=tariff_id)
await session.execute(stmt)
await session.commit()
await update_subscription(
tg_id=tg_id,
email=email,
session=session
)
await state.clear()
callback_data = AdminUserEditorCallback(action="users_key_edit", data=email, tg_id=tg_id)