Update viewController.ts
All checks were successful
Build / build (pull_request) Successful in 1m59s

This commit is contained in:
2025-11-05 19:39:28 +01:00
parent 0b81b6c68e
commit 9e8292ad6a

View File

@@ -1,11 +1,9 @@
import type { RequestHandler } from "express";
import { getAccountForRequest } from "../../services/loginService.ts";
import { getInventory } from "../../services/inventoryService.ts";
import { getStats } from "../../services/statsService.ts";
import type { IStatsClient } from "../../types/statTypes.ts";
const viewController: RequestHandler = async (req, res) => {
await getAccountForRequest(req);
const accountId = String(req.query.id ?? req.query.lookupId);
const inventory = await getInventory(accountId, "XPInfo");
const playerStats = await getStats(accountId);