fix missing response

This commit is contained in:
Ordis 2023-12-14 17:33:23 +01:00
parent 7ac305036c
commit 014772b7bf

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