XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

chore: remove log-in expired handler in getCreditsController

76d40964
Sainan <sainan@calamity.inc>
提交于

代码差异

1 个文件 +1 -7
Modified src/controllers/api/getCreditsController.ts +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