From 9075a05f02030bdce5b86ae0bcb7d49b0f11b50e Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Mon, 1 May 2023 18:38:23 +0200 Subject: [PATCH] Fix missing platform name --- apps/api/src/app/portfolio/portfolio.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/api/src/app/portfolio/portfolio.service.ts b/apps/api/src/app/portfolio/portfolio.service.ts index fd77baf77..830a4bbe9 100644 --- a/apps/api/src/app/portfolio/portfolio.service.ts +++ b/apps/api/src/app/portfolio/portfolio.service.ts @@ -1727,6 +1727,7 @@ export class PortfolioService { currentAccounts = await this.accountService.getAccounts(userId); } else if (filters.length === 1 && filters[0].type === 'ACCOUNT') { currentAccounts = await this.accountService.accounts({ + include: { Platform: true }, where: { id: filters[0].id } }); } else { @@ -1737,6 +1738,7 @@ export class PortfolioService { ); currentAccounts = await this.accountService.accounts({ + include: { Platform: true }, where: { id: { in: accountIds } } }); }