chore: buttonify unlockAllScans, unlockAllShipFeatures, unlockAllCapturaScenes #2738

Merged
Sainan merged 4 commits from codex-move-cheats-to-per-account-buttons into main 2025-09-02 20:22:48 -07:00
Showing only changes of commit fcb89d5f76 - Show all commits

View File

@ -9,7 +9,7 @@ const viewController: RequestHandler = async (req, res) => {
const inventory = await getInventory(accountId, "XPInfo");
const playerStats = await getStats(accountId);
const responseJson = playerStats.toJSON() as IStatsClient;
const responseJson = playerStats.toJSON<IStatsClient>();
responseJson.Weapons ??= [];
for (const item of inventory.XPInfo) {
const weaponIndex = responseJson.Weapons.findIndex(element => element.type == item.ItemType);