Browse Source

Update wtd

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

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

@ -1660,7 +1660,10 @@ export class PortfolioService {
case 'wtd': case 'wtd':
portfolioStart = max([ portfolioStart = max([
portfolioStart, portfolioStart,
startOfWeek(new Date().setHours(0, 0, 0, 0), { weekStartsOn: 1 }) subDays(
startOfWeek(new Date().setHours(0, 0, 0, 0), { weekStartsOn: 1 }),
1
)
]); ]);
break; break;
case 'ytd': case 'ytd':
@ -1682,6 +1685,7 @@ export class PortfolioService {
]); ]);
break; break;
} }
return portfolioStart; return portfolioStart;
} }

Loading…
Cancel
Save