chore: use SubdocumentArray.id in some more places #1400

Merged
Sainan merged 2 commits from subdoc-id into main 2025-03-31 04:15:33 -07:00
Showing only changes of commit 448ceede9f - Show all commits

View File

@ -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)!;