From 01bdffcc213051d9127479aa325d15f01f3d3113 Mon Sep 17 00:00:00 2001 From: feruz Date: Sun, 11 Aug 2024 11:57:14 +0300 Subject: [PATCH] update respond --- src/server/handlers/wallet-api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/handlers/wallet-api.ts b/src/server/handlers/wallet-api.ts index f59af825..885090fb 100644 --- a/src/server/handlers/wallet-api.ts +++ b/src/server/handlers/wallet-api.ts @@ -269,11 +269,11 @@ export const portfolio = async (req: express.Request, res: express.Response) => } }) - res.send(respObj) + return res.send(respObj) } catch (err: any) { console.warn("failed to compile portfolio", err); - res.status(500).send(err.message) + return res.status(500).send(err.message) } }