might as well improve this while we're touching this file
All checks were successful
Build / build (pull_request) Successful in 1m11s

This commit is contained in:
Sainan 2025-09-02 13:47:05 +02:00
parent 1d58059a0e
commit fcb89d5f76

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);