返回提交历史
Modified
src/controllers/api/getCreditsController.ts
+1
-7
XFEstudio/SpaceNinjaServer
chore: remove log-in expired handler in getCreditsController
76d40964
代码差异
1 个文件
+1
-7
@@ -4,13 +4,7 @@ import { getAccountIdForRequest } from "@/src/services/loginService";
4
4
import { getInventory } from "@/src/services/inventoryService";
5
5
6
6
export const getCreditsController: RequestHandler = async (req, res) => {
7
let accountId;
8
try {
9
accountId = await getAccountIdForRequest(req);
10
} catch (e) {
11
res.status(400).send("Log-in expired");
12
return;
13
}
7
const accountId = await getAccountIdForRequest(req);
14
8
15
9
const inventory = await getInventory(accountId);
16
10