saveLoadout and misc. #99

Merged
OrdisPrime merged 11 commits from saveLoadout2 into main 2023-12-14 08:34:15 -08:00
Showing only changes of commit 014772b7bf - Show all commits

View File

@ -16,6 +16,7 @@ const saveLoadoutController: RequestHandler = async (req, res) => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
const { UpgradeVer, ...equipmentChanges } = body; const { UpgradeVer, ...equipmentChanges } = body;
await handleInventoryItemConfigChange(equipmentChanges, accountId); await handleInventoryItemConfigChange(equipmentChanges, accountId);
res.status(200).end();
} catch (error: unknown) { } catch (error: unknown) {
if (error instanceof Error) { if (error instanceof Error) {
res.status(400).json({ error: error.message }); res.status(400).json({ error: error.message });