From 6296f80987a610637f7fbae9f9a27ac3aeff34bb Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Wed, 11 Jun 2025 12:12:36 +0200 Subject: [PATCH] use inventory projection --- src/controllers/custom/setBoosterController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/custom/setBoosterController.ts b/src/controllers/custom/setBoosterController.ts index 4da583b0..28939614 100644 --- a/src/controllers/custom/setBoosterController.ts +++ b/src/controllers/custom/setBoosterController.ts @@ -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 => {