From 516be6e600a08ad700d83b793dc64b2ca07bdf44 Mon Sep 17 00:00:00 2001 From: Fringg Date: Mon, 16 Feb 2026 18:24:27 +0300 Subject: [PATCH] fix: sync support mode from cabinet admin to SupportSettingsService Cabinet admin endpoint was setting settings.SUPPORT_SYSTEM_MODE directly without updating SupportSettingsService JSON, causing bot to show stale mode. Now routes through set_system_mode() which updates both stores. --- app/cabinet/routes/admin_tickets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cabinet/routes/admin_tickets.py b/app/cabinet/routes/admin_tickets.py index 72e21b81..c93a370c 100644 --- a/app/cabinet/routes/admin_tickets.py +++ b/app/cabinet/routes/admin_tickets.py @@ -269,7 +269,7 @@ async def update_ticket_settings( if request.sla_reminder_cooldown_minutes is not None: settings.SUPPORT_TICKET_SLA_REMINDER_COOLDOWN_MINUTES = request.sla_reminder_cooldown_minutes if request.support_system_mode is not None: - settings.SUPPORT_SYSTEM_MODE = request.support_system_mode.strip().lower() + SupportSettingsService.set_system_mode(request.support_system_mode.strip().lower()) # Update cabinet notification settings if request.cabinet_user_notifications_enabled is not None: