返回提交历史
Modified
src/controllers/custom/manageQuestsController.ts
+2
-4
XFEstudio/XFESpaceNinjaServer
fix: complete all quests not working (#1755)
Fixes #1742 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1755 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
9912a623
代码差异
1 个文件
+2
-4
@@ -35,10 +35,8 @@ export const manageQuestsController: RequestHandler = async (req, res) => {
35
35
36
36
switch (operation) {
37
37
case "completeAll": {
38
if (allQuestKeys.includes(questItemType)) {
39
for (const questKey of inventory.QuestKeys) {
40
await completeQuest(inventory, questKey.ItemType);
41
}
38
for (const questKey of inventory.QuestKeys) {
39
await completeQuest(inventory, questKey.ItemType);
42
40
}
43
41
break;
44
42
}