fix: purchasing extra SuitBin slot gives 2 instead of only 1
All checks were successful
Build / build (22) (push) Successful in 37s
Build / build (20) (push) Successful in 1m8s
Build / build (18) (push) Successful in 1m12s
Build Docker image / docker (push) Successful in 38s

This commit is contained in:
Sainan 2025-02-26 06:10:43 +01:00
parent 9893fa957f
commit 29ee839ab0

View File

@ -29,7 +29,7 @@ export const inventorySlotsController: RequestHandler = async (req, res) => {
const inventory = await getInventory(accountId);
const currencyChanges = updateCurrency(inventory, 20, true);
updateSlots(inventory, body.Bin, 1, 1);
updateSlots(inventory, body.Bin, 0, 1);
await inventory.save();
res.json({ InventoryChanges: currencyChanges });