mirror of
https://github.com/BEDOLAGA-DEV/remnawave-bedolaga-telegram-bot.git
synced 2026-02-23 21:01:17 +00:00
The user restoration flow deleted transactions without first clearing foreign key references from payment tables (yookassa_payments, cryptobot_payments, etc.) and referral_earnings. This caused IntegrityError when a deleted user had payment records linked to transactions.