Update viewController.ts
All checks were successful
Build / build (pull_request) Successful in 1m59s
All checks were successful
Build / build (pull_request) Successful in 1m59s
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user