From 826a09a47375af2d78616bdac847e286b2af73da Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Fri, 25 Apr 2025 11:51:43 -0700 Subject: [PATCH] fix: provide a response to setShipFavouriteLoadout (#1824) 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. Closes #1822 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1824 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- 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 {