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: optimise creditsController (#815)

5d4c454b
Sainan <sainan@calamity.inc>
提交于

代码差异

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