forked from OpenWF/SpaceNinjaServer
		
	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:
		
							parent
							
								
									98975edca1
								
							
						
					
					
						commit
						9912a623b1
					
				@ -35,10 +35,8 @@ export const manageQuestsController: RequestHandler = async (req, res) => {
 | 
			
		||||
 | 
			
		||||
    switch (operation) {
 | 
			
		||||
        case "completeAll": {
 | 
			
		||||
            if (allQuestKeys.includes(questItemType)) {
 | 
			
		||||
                for (const questKey of inventory.QuestKeys) {
 | 
			
		||||
                    await completeQuest(inventory, questKey.ItemType);
 | 
			
		||||
                }
 | 
			
		||||
            for (const questKey of inventory.QuestKeys) {
 | 
			
		||||
                await completeQuest(inventory, questKey.ItemType);
 | 
			
		||||
            }
 | 
			
		||||
            break;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user