mirror of
https://github.com/BEDOLAGA-DEV/remnawave-bedolaga-telegram-bot.git
synced 2026-03-05 13:23:48 +00:00
1. connected_squads JSON stores IDs as strings but server_squads.id is integer — cast to int before passing to remove_user_from_servers 2. Wrap remove_user_from_servers in its own db.begin_nested() so its failure doesn't abort the parent savepoint (subscription deletion) 3. Pre-fetch admin.id before delete_user_account to avoid MissingGreenlet when transaction rollback expires the ORM object