XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

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>

fbbd9076
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -0
Modified src/controllers/custom/configController.ts +2 -0
@@ -3,6 +3,7 @@ import { config } from "@/src/services/configService";
3 3 import { getAccountForRequest, isAdministrator } from "@/src/services/loginService";
4 4 import { saveConfig } from "@/src/services/configWriterService";
5 5 import { sendWsBroadcastExcept } from "@/src/services/wsService";
6 import { syncConfigWithDatabase } from "@/src/services/configWatcherService";
6 7
7 8 export const getConfigController: RequestHandler = async (req, res) => {
8 9 const account = await getAccountForRequest(req);
@@ -26,6 +27,7 @@ export const setConfigController: RequestHandler = async (req, res) => {
26 27 obj[idx] = value;
27 28 }
28 29 sendWsBroadcastExcept(parseInt(String(req.query.wsid)), { config_reloaded: true });
30 syncConfigWithDatabase();
29 31 await saveConfig();
30 32 res.end();
31 33 } else {