use inventory projection
All checks were successful
Build / build (pull_request) Successful in 1m18s
All checks were successful
Build / build (pull_request) Successful in 1m18s
This commit is contained in:
parent
675c2a7b82
commit
6296f80987
@ -8,7 +8,7 @@ const I32_MAX = 0x7fffffff;
|
|||||||
export const setBoosterController: RequestHandler = async (req, res) => {
|
export const setBoosterController: RequestHandler = async (req, res) => {
|
||||||
const accountId = await getAccountIdForRequest(req);
|
const accountId = await getAccountIdForRequest(req);
|
||||||
const requests = req.body as { ItemType: string; ExpiryDate: number }[];
|
const requests = req.body as { ItemType: string; ExpiryDate: number }[];
|
||||||
const inventory = await getInventory(accountId);
|
const inventory = await getInventory(accountId, "Boosters");
|
||||||
const boosters = inventory.Boosters;
|
const boosters = inventory.Boosters;
|
||||||
if (
|
if (
|
||||||
requests.some(request => {
|
requests.some(request => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user