chore: use SubdocumentArray.id in some more places #1400
@ -6,7 +6,7 @@ import { WeaponTypeInternal } from "@/src/services/itemDataService";
|
||||
|
||||
export const setWeaponSkillTreeController: RequestHandler = async (req, res) => {
|
||||
const accountId = await getAccountIdForRequest(req);
|
||||
const inventory = await getInventory(accountId);
|
||||
const inventory = await getInventory(accountId, req.query.Category as string);
|
||||
const payload = getJSONfromString<ISetWeaponSkillTreeRequest>(String(req.body));
|
||||
|
||||
const item = inventory[req.query.Category as WeaponTypeInternal].id(req.query.ItemId as string)!;
|
||||
|
Loading…
x
Reference in New Issue
Block a user