Remove postfix (#1360)
This commit is contained in:
parent
384d18b2a6
commit
47f84dab06
@ -238,12 +238,10 @@ export class PortfolioController {
|
|||||||
@Headers('impersonation-id') impersonationId: string,
|
@Headers('impersonation-id') impersonationId: string,
|
||||||
@Query('range') dateRange: DateRange = 'max'
|
@Query('range') dateRange: DateRange = 'max'
|
||||||
): Promise<PortfolioPerformanceResponse> {
|
): Promise<PortfolioPerformanceResponse> {
|
||||||
const performanceInformation = await this.portfolioService.getPerformanceV2(
|
const performanceInformation = await this.portfolioService.getPerformance({
|
||||||
{
|
dateRange,
|
||||||
dateRange,
|
impersonationId
|
||||||
impersonationId
|
});
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
impersonationId ||
|
impersonationId ||
|
||||||
|
@ -302,7 +302,7 @@ export class PortfolioService {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public async getChartV2({
|
public async getChart({
|
||||||
dateRange = 'max',
|
dateRange = 'max',
|
||||||
impersonationId
|
impersonationId
|
||||||
}: {
|
}: {
|
||||||
@ -881,7 +881,7 @@ export class PortfolioService {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public async getPerformanceV2({
|
public async getPerformance({
|
||||||
dateRange = 'max',
|
dateRange = 'max',
|
||||||
impersonationId
|
impersonationId
|
||||||
}: {
|
}: {
|
||||||
@ -945,7 +945,7 @@ export class PortfolioService {
|
|||||||
// currentNetPerformancePercent = currentNetPerformancePercent.mul(-1);
|
// currentNetPerformancePercent = currentNetPerformancePercent.mul(-1);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
const historicalDataContainer = await this.getChartV2({
|
const historicalDataContainer = await this.getChart({
|
||||||
dateRange,
|
dateRange,
|
||||||
impersonationId
|
impersonationId
|
||||||
});
|
});
|
||||||
@ -1270,7 +1270,7 @@ export class PortfolioService {
|
|||||||
const userId = await this.getUserId(impersonationId, this.request.user.id);
|
const userId = await this.getUserId(impersonationId, this.request.user.id);
|
||||||
const user = await this.userService.user({ id: userId });
|
const user = await this.userService.user({ id: userId });
|
||||||
|
|
||||||
const performanceInformation = await this.getPerformanceV2({
|
const performanceInformation = await this.getPerformance({
|
||||||
impersonationId
|
impersonationId
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user