fix(sms): keep charge deposit defaults and unlock referral bonus

Empty SuperAdmin chargeInfo was wiping sms_charge_* on header refresh.
Seed those keys only when empty, and move referral_bonus_amount to can_edit=1.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-01 21:38:19 +03:30
co-authored by Cursor
parent cae41e72b8
commit 91a2dab440
8 changed files with 368 additions and 31 deletions
@@ -42,6 +42,7 @@ UPDATE `settings` SET `menu` = CASE
WHEN `key` LIKE 'montzar_%' OR `key` = 'display_montzar' THEN 'montzar'
WHEN `key` LIKE 'sms_notif_%'
OR `key` IN ('charge_notif', 'register_referral_sms_to_referrer') THEN 'notifications'
WHEN `key` LIKE 'sms_charge_%' THEN 'sms_charge'
WHEN `key` LIKE 'price_channel_%' OR `key` = 'change_mesghal' THEN 'price_channel'
WHEN `key` LIKE 'telegram_bot%' OR `key` LIKE 'bale_bot%' OR `key` LIKE 'rubika_bot%' THEN 'bots'
WHEN `key` LIKE 'referral_%'