返回提交历史
Modified
src/services/inventoryService.ts
+2
-1
XFEstudio/XFESpaceNinjaServer
chore: don't fail missionInventoryUpdate on unknown items (#2144)
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. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2144 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
48234062
代码差异
1 个文件
+2
-1
@@ -1525,7 +1525,8 @@ export const applyClientEquipmentUpdates = (
1525
1525
gearArray.forEach(({ ItemId, XP, InfestationDate }) => {
1526
1526
const item = category.id(fromOid(ItemId));
1527
1527
if (!item) {
1528
throw new Error(`No item with id ${fromOid(ItemId)} in ${categoryName}`);
1528
logger.warn(`Skipping unknown ${categoryName} item: id ${fromOid(ItemId)} not found`);
1529
return;
1529
1530
}
1530
1531
1531
1532
if (XP) {