forked from OpenWF/SpaceNinjaServer
		
	fix: aborting Mission and completeAllQuests config (#858)
This commit is contained in:
		
							parent
							
								
									8b836020bf
								
							
						
					
					
						commit
						ebd51cc380
					
				@ -127,6 +127,7 @@ export const inventoryController: RequestHandler = async (request, response) =>
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        inventoryResponse.ArchwingEnabled = true;
 | 
					        inventoryResponse.ArchwingEnabled = true;
 | 
				
			||||||
 | 
					        inventoryResponse.ActiveQuest = ""; //TODO: might need to reconsider this if this does not work long term.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // Skip "Watch The Maker"
 | 
					        // Skip "Watch The Maker"
 | 
				
			||||||
        addString(inventoryResponse.NodeIntrosCompleted, "/Lotus/Levels/Cinematics/NewWarIntro/NewWarStageTwo.level");
 | 
					        addString(inventoryResponse.NodeIntrosCompleted, "/Lotus/Levels/Cinematics/NewWarIntro/NewWarStageTwo.level");
 | 
				
			||||||
 | 
				
			|||||||
@ -58,6 +58,7 @@ export const missionInventoryUpdateController: RequestHandler = async (req, res)
 | 
				
			|||||||
        console.log(`Mission failed: ${missionReport.RewardInfo?.node}`);
 | 
					        console.log(`Mission failed: ${missionReport.RewardInfo?.node}`);
 | 
				
			||||||
        //todo: return expected response for failed mission
 | 
					        //todo: return expected response for failed mission
 | 
				
			||||||
        res.json([]);
 | 
					        res.json([]);
 | 
				
			||||||
 | 
					        return;
 | 
				
			||||||
        //duvirisadjob does not provide missionStatus
 | 
					        //duvirisadjob does not provide missionStatus
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -43,7 +43,6 @@ export interface IInventoryDatabase
 | 
				
			|||||||
    GuildId?: Types.ObjectId; // GuildId changed from ?IOid to ?Types.ObjectId
 | 
					    GuildId?: Types.ObjectId; // GuildId changed from ?IOid to ?Types.ObjectId
 | 
				
			||||||
    PendingRecipes: IPendingRecipe[];
 | 
					    PendingRecipes: IPendingRecipe[];
 | 
				
			||||||
    QuestKeys: IQuestKeyDatabase[];
 | 
					    QuestKeys: IQuestKeyDatabase[];
 | 
				
			||||||
    ActiveQuest: string;
 | 
					 | 
				
			||||||
    BlessingCooldown: Date;
 | 
					    BlessingCooldown: Date;
 | 
				
			||||||
    Ships: Types.ObjectId[];
 | 
					    Ships: Types.ObjectId[];
 | 
				
			||||||
    WeaponSkins: IWeaponSkinDatabase[];
 | 
					    WeaponSkins: IWeaponSkinDatabase[];
 | 
				
			||||||
@ -207,6 +206,7 @@ export interface IInventoryClient extends IDailyAffiliations {
 | 
				
			|||||||
    ReceivedStartingGear: boolean;
 | 
					    ReceivedStartingGear: boolean;
 | 
				
			||||||
    Ships: IShipInventory[];
 | 
					    Ships: IShipInventory[];
 | 
				
			||||||
    QuestKeys: IQuestKeyClient[];
 | 
					    QuestKeys: IQuestKeyClient[];
 | 
				
			||||||
 | 
					    ActiveQuest: string;
 | 
				
			||||||
    FlavourItems: IFlavourItem[];
 | 
					    FlavourItems: IFlavourItem[];
 | 
				
			||||||
    Scoops: IEquipmentDatabase[];
 | 
					    Scoops: IEquipmentDatabase[];
 | 
				
			||||||
    LoadOutPresets: ILoadOutPresets;
 | 
					    LoadOutPresets: ILoadOutPresets;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user