Apply prettier changes
This commit is contained in:
parent
22d8b378d2
commit
b8864d4399
@ -35,7 +35,7 @@ export const gildWeaponController: RequestHandler = async (req, res) => {
|
||||
data.Category = req.query.Category as WeaponTypeInternal | "Hoverboards";
|
||||
|
||||
const inventory = await getInventory(accountId);
|
||||
if(!inventory[data.Category]) {
|
||||
if (!inventory[data.Category]) {
|
||||
throw new Error(`Category ${req.query.Category} not found in inventory`);
|
||||
}
|
||||
const weaponIndex = inventory[data.Category].findIndex(x => String(x._id) === data.ItemId);
|
||||
|
Loading…
x
Reference in New Issue
Block a user