chore: don't fail missionInventoryUpdate on unknown items
All checks were successful
Build / build (pull_request) Successful in 43s
Build / build (push) Successful in 2m26s

It's possible we started a mission, deleted an item in the webui, and then finished it. The mission completion is still valid, we just can't update that item.
This commit is contained in:
Sainan 2025-06-10 19:26:29 +02:00
parent 60236a1154
commit 9eff1b9032

View File

@ -1525,7 +1525,8 @@ export const applyClientEquipmentUpdates = (
gearArray.forEach(({ ItemId, XP, InfestationDate }) => {
const item = category.id(fromOid(ItemId));
if (!item) {
throw new Error(`No item with id ${fromOid(ItemId)} in ${categoryName}`);
logger.warn(`Skipping unknown ${categoryName} item: id ${fromOid(ItemId)} not found`);
return;
}
if (XP) {