RED-7876 - Diagrams for future license are empty #209
@ -30,7 +30,6 @@ public class LicenseReportService {
|
|||||||
public LicenseReport getLicenseReport(LicenseReportRequest licenseReportRequest) {
|
public LicenseReport getLicenseReport(LicenseReportRequest licenseReportRequest) {
|
||||||
|
|
||||||
if (licenseReportRequest.getStartDate() == null ||
|
if (licenseReportRequest.getStartDate() == null ||
|
||||||
licenseReportRequest.getStartDate().isAfter(Instant.now()) ||
|
|
||||||
licenseReportRequest.getStartDate().isAfter(licenseReportRequest.getEndDate())) {
|
licenseReportRequest.getStartDate().isAfter(licenseReportRequest.getEndDate())) {
|
||||||
return LicenseReport.builder()
|
return LicenseReport.builder()
|
||||||
.startDate(licenseReportRequest.getStartDate())
|
.startDate(licenseReportRequest.getStartDate())
|
||||||
|
|||||||
@ -20,7 +20,7 @@ public class LicenseReportRequest {
|
|||||||
|
|
||||||
public Instant getEndDate() {
|
public Instant getEndDate() {
|
||||||
|
|
||||||
if (endDate == null || endDate.isAfter(Instant.now())) {
|
if (endDate == null) {
|
||||||
endDate = Instant.now();
|
endDate = Instant.now();
|
||||||
}
|
}
|
||||||
return endDate;
|
return endDate;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user