From a2c91e21491b0c9753cfb58d27ac77000ba5968c Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Thu, 11 Jan 2024 15:06:41 +0200 Subject: [PATCH] RED-8234: fixed licenses total stats. --- apps/red-ui/src/app/services/license.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/red-ui/src/app/services/license.service.ts b/apps/red-ui/src/app/services/license.service.ts index 53bcd83d9..e92cef8a3 100644 --- a/apps/red-ui/src/app/services/license.service.ts +++ b/apps/red-ui/src/app/services/license.service.ts @@ -37,6 +37,8 @@ const defaultOnError: ILicenses = { ], }; +const ALL_START_DATE = '2020-01-01T00:00:00.000Z'; + @Injectable({ providedIn: 'root', }) @@ -136,8 +138,8 @@ export class LicenseService extends GenericService { }); this.allLicensesReport = await this.getReport({ - startDate: '2020-01-01T00:00:00.000Z', - endDate: '2023-12-31T00:00:00.000Z', + startDate: ALL_START_DATE, + endDate: endDate.toDate(), }); }