From fcb89d5f76e04dc7710130b968f6ca26c414e441 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Tue, 2 Sep 2025 13:47:05 +0200 Subject: [PATCH] might as well improve this while we're touching this file --- src/controllers/stats/viewController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/stats/viewController.ts b/src/controllers/stats/viewController.ts index 27fe309f..861dacdc 100644 --- a/src/controllers/stats/viewController.ts +++ b/src/controllers/stats/viewController.ts @@ -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(); responseJson.Weapons ??= []; for (const item of inventory.XPInfo) { const weaponIndex = responseJson.Weapons.findIndex(element => element.type == item.ItemType);