use inventory projection
All checks were successful
Build / build (pull_request) Successful in 1m18s

This commit is contained in:
Sainan 2025-06-11 12:12:36 +02:00
parent 675c2a7b82
commit 6296f80987

View File

@ -8,7 +8,7 @@ const I32_MAX = 0x7fffffff;
export const setBoosterController: RequestHandler = async (req, res) => {
const accountId = await getAccountIdForRequest(req);
const requests = req.body as { ItemType: string; ExpiryDate: number }[];
const inventory = await getInventory(accountId);
const inventory = await getInventory(accountId, "Boosters");
const boosters = inventory.Boosters;
if (
requests.some(request => {