chore: remove log-in expired handler in getCreditsController

This commit is contained in:
Sainan 2025-01-04 01:04:00 +01:00
parent e77f8b0e51
commit 76d40964db

View File

@ -4,13 +4,7 @@ import { getAccountIdForRequest } from "@/src/services/loginService";
import { getInventory } from "@/src/services/inventoryService";
export const getCreditsController: RequestHandler = async (req, res) => {
let accountId;
try {
accountId = await getAccountIdForRequest(req);
} catch (e) {
res.status(400).send("Log-in expired");
return;
}
const accountId = await getAccountIdForRequest(req);
const inventory = await getInventory(accountId);