Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Remove postfix (#1360)

Thomas Kaul47f84dab068c
diff --git a/apps/api/src/app/portfolio/portfolio.controller.ts b/apps/api/src/app/portfolio/portfolio.controller.ts
index abff3a4208..ef0b586e5b 100644
--- a/apps/api/src/app/portfolio/portfolio.controller.ts
+++ b/apps/api/src/app/portfolio/portfolio.controller.ts
@@ -238,12 +238,10 @@ export class PortfolioController {
@Headers('impersonation-id') impersonationId: string,
@Query('range') dateRange: DateRange = 'max'
): Promise<PortfolioPerformanceResponse> {
- const performanceInformation = await this.portfolioService.getPerformanceV2(
- {
- dateRange,
- impersonationId
- }
- );
+ const performanceInformation = await this.portfolioService.getPerformance({
+ dateRange,
+ impersonationId
+ });
if (
impersonationId ||
diff --git a/apps/api/src/app/portfolio/portfolio.service.ts b/apps/api/src/app/portfolio/portfolio.service.ts
index 1a22f8f4b2..a34d1e3850 100644
--- a/apps/api/src/app/portfolio/portfolio.service.ts
+++ b/apps/api/src/app/portfolio/portfolio.service.ts
@@ -302,7 +302,7 @@ export class PortfolioService {
});
}
- public async getChartV2({
+ public async getChart({
dateRange = 'max',
impersonationId
}: {
@@ -881,7 +881,7 @@ export class PortfolioService {
};
}
- public async getPerformanceV2({
+ public async getPerformance({
dateRange = 'max',
impersonationId
}: {
@@ -945,7 +945,7 @@ export class PortfolioService {
// currentNetPerformancePercent = currentNetPerformancePercent.mul(-1);
// }
- const historicalDataContainer = await this.getChartV2({
+ const historicalDataContainer = await this.getChart({
dateRange,
impersonationId
});
@@ -1270,7 +1270,7 @@ export class PortfolioService {
const userId = await this.getUserId(impersonationId, this.request.user.id);
const user = await this.userService.user({ id: userId });
- const performanceInformation = await this.getPerformanceV2({
+ const performanceInformation = await this.getPerformance({
impersonationId
});