From 8ced8350e018d3b772472de16fd1d8ad07f169b9 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Thu, 24 Apr 2025 20:56:11 +0200 Subject: [PATCH] fix: provide a response to setShipFavouriteLoadout Seems to be the same format as the request, so just mirror it back. This is so the client knows we acknowledged the change as it won't resync the ship until the next login. --- src/controllers/api/setShipFavouriteLoadoutController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/api/setShipFavouriteLoadoutController.ts b/src/controllers/api/setShipFavouriteLoadoutController.ts index e4bf2e13..a7df934f 100644 --- a/src/controllers/api/setShipFavouriteLoadoutController.ts +++ b/src/controllers/api/setShipFavouriteLoadoutController.ts @@ -20,7 +20,7 @@ export const setShipFavouriteLoadoutController: RequestHandler = async (req, res throw new Error(`unexpected BootLocation: ${body.BootLocation}`); } await personalRooms.save(); - res.json({}); + res.json(body); }; interface ISetShipFavouriteLoadoutRequest {