feat: mods in pre-U18.18 builds + equipment features in pre-U24.4 builds #3040

Merged
Sainan merged 10 commits from VoltPrime/SpaceNinjaServer:mods-equipmentfeatures-legacy into main 2025-11-18 00:27:12 -08:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit eb552777fb - Show all commits

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 });
};