forked from OpenWF/SpaceNinjaServer
use inventory projection
This commit is contained in:
parent
675c2a7b82
commit
6296f80987
@ -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 => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user