Skip to content

Commit

Permalink
update respond
Browse files Browse the repository at this point in the history
  • Loading branch information
feruzm committed Aug 11, 2024
1 parent 14c7dc1 commit 01bdffc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/handlers/wallet-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

}

0 comments on commit 01bdffc

Please sign in to comment.