Merge branch 'RED-7876' into 'master'

RED-7876 - Diagrams for future license are empty

Closes RED-7876

See merge request redactmanager/persistence-service!209
This commit is contained in:
Corina Olariu 2023-11-13 09:45:59 +01:00
commit 8ad1938b1c
2 changed files with 1 additions and 2 deletions

View File

@ -30,7 +30,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())

View File

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