返回提交历史
Modified
src/controllers/api/creditsController.ts
+1
-1
XFEstudio/SpaceNinjaServer
chore: optimise creditsController (#815)
5d4c454b
代码差异
1 个文件
+1
-1
@@ -6,7 +6,7 @@ import { getInventory } from "@/src/services/inventoryService";
6
6
export const creditsController: RequestHandler = async (req, res) => {
7
7
const accountId = await getAccountIdForRequest(req);
8
8
9
const inventory = await getInventory(accountId);
9
const inventory = await getInventory(accountId, "RegularCredits TradesRemaining PremiumCreditsFree PremiumCredits");
10
10
11
11
const response = {
12
12
RegularCredits: inventory.RegularCredits,