返回提交历史
Modified
src/controllers/stats/viewController.ts
+1
-1
XFEstudio/XFESpaceNinjaServer
fix: profile stats in U5 (#3632)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3632 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
b0367652
代码差异
1 个文件
+1
-1
@@ -5,7 +5,7 @@ import type { IStatsClient } from "../../types/statTypes.ts";
5
5
import { getProfileViewingDataByGuildId } from "../dynamic/getProfileViewingDataController.ts";
6
6
7
7
const viewController: RequestHandler = async (req, res) => {
8
const lookupId = String(req.query.id ?? req.query.lookupId);
8
const lookupId = String(req.query.id ?? req.query.lookupId ?? req.query.accountId);
9
9
10
10
if (req.query.guild == "1") {
11
11
const data = await getProfileViewingDataByGuildId(lookupId);