返回提交历史
Modified
src/services/inventoryService.ts
+3
-1
XFEstudio/XFESpaceNinjaServer
fix: error when using consumable item in mission (#165)
91abd419
代码差异
1 个文件
+3
-1
@@ -319,7 +319,9 @@ export const missionInventoryUpdate = async (data: IMissionInventoryUpdateReques
319
319
addConsumables(inventory, Consumables);
320
320
addRecipes(inventory, Recipes);
321
321
addChallenges(inventory, ChallengeProgress);
322
addMissionComplete(inventory, Missions!);
322
if (Missions) {
323
addMissionComplete(inventory, Missions);
324
}
323
325
324
326
const changedInventory = await inventory.save();
325
327
return changedInventory.toJSON();