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