Tiny cleanup
All checks were successful
Build / build (pull_request) Successful in 2m5s

This commit is contained in:
2025-11-17 05:16:23 -05:00
parent 87163d0a21
commit eb552777fb
2 changed files with 2 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import { getJSONfromString } from "../../helpers/stringHelpers.ts";
import { getAccountForRequest, getAccountIdForRequest } from "../../services/loginService.ts";
import { getAccountForRequest } from "../../services/loginService.ts";
import type { RequestHandler } from "express";
import type {
IInventoryClient,
@@ -12,7 +12,7 @@ import { toLegacyOid, version_compare } from "../../helpers/inventoryHelpers.ts"
export const artifactsController: RequestHandler = async (req, res) => {
const account = await getAccountForRequest(req);
const accountId = await getAccountIdForRequest(req);
const accountId = account._id.toString();
const artifactsData = getJSONfromString<IArtifactsRequest>(String(req.body));
const { Upgrade, LevelDiff, Cost, FusionPointCost, Consumed, Fingerprint } = artifactsData;

View File

@@ -280,7 +280,6 @@ export const upgradesController: RequestHandler = async (req, res) => {
}
}
}
await inventory.save();
res.json({ InventoryChanges: inventoryChanges });
};