Fix key renewal and expiry update function signatures

- Update `change_expiry_time` to pass session to `update_key_expiry`
- Adjust `complete_key_renewal` connection closing order
- Minor code structure improvements in key handling functions
This commit is contained in:
Zakhar Izmaylov
2025-01-31 06:44:36 +03:00
parent 8390775b6b
commit eb03b6014d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -633,7 +633,7 @@ async def change_expiry_time(expiry_time: int, email: str, session: Any) -> Exce
await asyncio.gather(*tasks)
await update_key_on_all_servers()
await update_key_expiry(client_id, expiry_time)
await update_key_expiry(client_id, expiry_time, session)
async def get_user_balance(tg_id: int, session: Any) -> float: