diff --git a/apps/api/src/app/portfolio/portfolio.controller.ts b/apps/api/src/app/portfolio/portfolio.controller.ts index a22913ce8..24811a1b3 100644 --- a/apps/api/src/app/portfolio/portfolio.controller.ts +++ b/apps/api/src/app/portfolio/portfolio.controller.ts @@ -79,7 +79,7 @@ export class PortfolioController { })); } - return investments; + return res.json(investments); } @Get('chart') @@ -325,6 +325,8 @@ export class PortfolioController { return res.json({ rules: [] }); } - return await this.portfolioService.getReport(impersonationId); + return ( + res.json(await this.portfolioService.getReport(impersonationId)) + ); } }