Skip to content

Commit

Permalink
Update allocation api
Browse files Browse the repository at this point in the history
  • Loading branch information
schulzetenberg committed Sep 28, 2022
1 parent f85df4f commit 327830c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controllers/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ exports.getAllocation = (req, res) => {
)
.lean()
.then((data) => {
res.json(data.totalPortfolio);
res.json({
portfolio: data.totalPortfolio,
diversification: data.totalDiversification,
});
})
.catch((err) => {
logger.error('Error getting allocation data', err);
Expand Down

0 comments on commit 327830c

Please sign in to comment.