feat: mods in pre-U18.18 builds + equipment features in pre-U24.4 builds #3040
@@ -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;
|
||||
|
||||
@@ -280,7 +280,6 @@ export const upgradesController: RequestHandler = async (req, res) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
await inventory.save();
|
||||
res.json({ InventoryChanges: inventoryChanges });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user