RED-7876 - Diagrams for future license are empty -backport

- remove the check for start date in the future
- remove the setting to set current date for end date in case date is in the future
This commit is contained in:
Corina Olariu 2023-11-13 15:12:48 +02:00
parent 4a6e80f1b3
commit 8a0dcfd620
2 changed files with 1 additions and 2 deletions

View File

@ -29,7 +29,7 @@ public class LicenseReportRequest {
public Instant getEndDate() {
if (endDate == null || endDate.isAfter(Instant.now())) {
if (endDate == null) {
endDate = Instant.now();
}
return endDate;

View File

@ -38,7 +38,6 @@ public class LicenseReportService {
public LicenseReport getLicenseReport(LicenseReportRequest licenseReportRequest) {
if (licenseReportRequest.getStartDate() == null ||
licenseReportRequest.getStartDate().isAfter(Instant.now()) ||
licenseReportRequest.getStartDate().isAfter(licenseReportRequest.getEndDate())) {
return LicenseReport.builder()
.startDate(licenseReportRequest.getStartDate())