fix: complete all quests not working (#1755)

Fixes #1742

Reviewed-on: OpenWF/SpaceNinjaServer#1755
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-04-21 10:42:56 -07:00 committed by Sainan
parent 98975edca1
commit 9912a623b1

View File

@ -35,10 +35,8 @@ export const manageQuestsController: RequestHandler = async (req, res) => {
switch (operation) { switch (operation) {
case "completeAll": { case "completeAll": {
if (allQuestKeys.includes(questItemType)) { for (const questKey of inventory.QuestKeys) {
for (const questKey of inventory.QuestKeys) { await completeQuest(inventory, questKey.ItemType);
await completeQuest(inventory, questKey.ItemType);
}
} }
break; break;
} }