Browse Source

Update mtd and ytd

pull/2905/head
Thomas Kaul 2 years ago
parent
commit
d713d7c995
  1. 4
      apps/api/src/app/portfolio/portfolio.service.ts

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

@ -1654,7 +1654,7 @@ export class PortfolioService {
case 'mtd':
portfolioStart = max([
portfolioStart,
startOfMonth(new Date().setHours(0, 0, 0, 0))
subDays(startOfMonth(new Date().setHours(0, 0, 0, 0)), 1)
]);
break;
case 'wtd':
@ -1669,7 +1669,7 @@ export class PortfolioService {
case 'ytd':
portfolioStart = max([
portfolioStart,
startOfYear(new Date().setHours(0, 0, 0, 0))
subDays(startOfYear(new Date().setHours(0, 0, 0, 0)), 1)
]);
break;
case '1y':

Loading…
Cancel
Save