返回提交历史
Modified
src/controllers/api/getGuildDojoController.ts
+8
-1
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
代码差异
1 个文件
+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 {