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: provide a response to setShipFavouriteLoadout (#1824)

Seems to be the same format as the request, so just mirror it back. This is so the client knows we acknowledged the change as it won't resync the ship until the next login. Closes #1822 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1824 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

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

代码差异

1 个文件 +1 -1
Modified src/controllers/api/setShipFavouriteLoadoutController.ts +1 -1
@@ -20,7 +20,7 @@ export const setShipFavouriteLoadoutController: RequestHandler = async (req, res
20 20 throw new Error(`unexpected BootLocation: ${body.BootLocation}`);
21 21 }
22 22 await personalRooms.save();
23 res.json({});
23 res.json(body);
24 24 };
25 25
26 26 interface ISetShipFavouriteLoadoutRequest {