might as well improve this while we're touching this file
All checks were successful
Build / build (pull_request) Successful in 1m11s
All checks were successful
Build / build (pull_request) Successful in 1m11s
This commit is contained in:
parent
1d58059a0e
commit
fcb89d5f76
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user