forked from OpenWF/SpaceNinjaServer
chore: optimise creditsController (#815)
This commit is contained in:
parent
73df848f11
commit
5d4c454b0b
@ -6,7 +6,7 @@ import { getInventory } from "@/src/services/inventoryService";
|
||||
export const creditsController: RequestHandler = async (req, res) => {
|
||||
const accountId = await getAccountIdForRequest(req);
|
||||
|
||||
const inventory = await getInventory(accountId);
|
||||
const inventory = await getInventory(accountId, "RegularCredits TradesRemaining PremiumCreditsFree PremiumCredits");
|
||||
|
||||
const response = {
|
||||
RegularCredits: inventory.RegularCredits,
|
||||
|
Loading…
x
Reference in New Issue
Block a user