chore: buttonify unlockAllScans, unlockAllShipFeatures, unlockAllCapturaScenes #2738
@ -9,7 +9,7 @@ const viewController: RequestHandler = async (req, res) => {
 | 
				
			|||||||
    const inventory = await getInventory(accountId, "XPInfo");
 | 
					    const inventory = await getInventory(accountId, "XPInfo");
 | 
				
			||||||
    const playerStats = await getStats(accountId);
 | 
					    const playerStats = await getStats(accountId);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const responseJson = playerStats.toJSON() as IStatsClient;
 | 
					    const responseJson = playerStats.toJSON<IStatsClient>();
 | 
				
			||||||
    responseJson.Weapons ??= [];
 | 
					    responseJson.Weapons ??= [];
 | 
				
			||||||
    for (const item of inventory.XPInfo) {
 | 
					    for (const item of inventory.XPInfo) {
 | 
				
			||||||
        const weaponIndex = responseJson.Weapons.findIndex(element => element.type == item.ItemType);
 | 
					        const weaponIndex = responseJson.Weapons.findIndex(element => element.type == item.ItemType);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user