Browse Source

Refactoring

pull/1421/head
Thomas 3 years ago
parent
commit
851c22bfa2
  1. 4
      apps/api/src/app/portfolio/portfolio.controller.ts

4
apps/api/src/app/portfolio/portfolio.controller.ts

@ -227,7 +227,7 @@ export class PortfolioController {
this.request.user.subscription.type === 'Basic'
) {
investments = investments.map((item) => {
return { ...item, investment: null };
return nullifyValuesInObject(item, ['investment']);
});
}
@ -285,7 +285,7 @@ export class PortfolioController {
) {
performanceInformation.chart = performanceInformation.chart.map(
(item) => {
return { ...item, totalInvestment: null, value: null };
return nullifyValuesInObject(item, ['totalInvestment', 'value']);
}
);
}

Loading…
Cancel
Save