From fbbd9076cfb91163abc28aac8ac7e3fc1c88599f Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Fri, 11 Jul 2025 21:16:07 -0700 Subject: [PATCH] fix: delete galleon of ghouls inbox messages when disabled via webui (#2473) Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2473 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- src/controllers/custom/configController.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controllers/custom/configController.ts b/src/controllers/custom/configController.ts index 0cc28698..9f3c17e3 100644 --- a/src/controllers/custom/configController.ts +++ b/src/controllers/custom/configController.ts @@ -3,6 +3,7 @@ import { config } from "@/src/services/configService"; import { getAccountForRequest, isAdministrator } from "@/src/services/loginService"; import { saveConfig } from "@/src/services/configWriterService"; import { sendWsBroadcastExcept } from "@/src/services/wsService"; +import { syncConfigWithDatabase } from "@/src/services/configWatcherService"; export const getConfigController: RequestHandler = async (req, res) => { const account = await getAccountForRequest(req); @@ -26,6 +27,7 @@ export const setConfigController: RequestHandler = async (req, res) => { obj[idx] = value; } sendWsBroadcastExcept(parseInt(String(req.query.wsid)), { config_reloaded: true }); + syncConfigWithDatabase(); await saveConfig(); res.end(); } else {