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: handle request for an individual dojo component from old versions (#3468)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3468 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

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

代码差异

1 个文件 +8 -1
Modified src/controllers/api/getGuildDojoController.ts +8 -1
@@ -27,7 +27,14 @@ export const getGuildDojoController: RequestHandler = async (req, res) => {
27 27
28 28 const payload: IGetGuildDojoRequest = req.body ? (JSON.parse(String(req.body)) as IGetGuildDojoRequest) : {};
29 29 const account = await Account.findById(req.query.accountId as string);
30 res.json(await getDojoClient(guild, 0, payload.ComponentId, account?.BuildLabel));
30 res.json(
31 await getDojoClient(
32 guild,
33 0,
34 payload.ComponentId ?? (req.query.componentId as string | undefined),
35 account?.BuildLabel
36 )
37 );
31 38 };
32 39
33 40 interface IGetGuildDojoRequest {