RED-7854 - UI stuck when selecting a future license

- no need to specify 0 for int values, will be initialized with 0 by default
This commit is contained in:
Corina Olariu 2023-11-01 10:21:36 +02:00
parent 5c28072103
commit 9b5b8195dc

View File

@ -33,16 +33,6 @@ public class LicenseReportService {
licenseReportRequest.getStartDate().isAfter(Instant.now()) ||
licenseReportRequest.getStartDate().isAfter(licenseReportRequest.getEndDate())) {
return LicenseReport.builder()
.totalFilesUploadedBytes(0)
.activeFilesUploadedBytes(0)
.trashFilesUploadedBytes(0)
.archivedFilesUploadedBytes(0)
.numberOfAnalyzedPages(0)
.numberOfOcrPages(0)
.numberOfAnalyzedFiles(0)
.analysedFilesBytes(0)
.numberOfOcrFiles(0)
.numberOfDossiers(0)
.startDate(licenseReportRequest.getStartDate())
.endDate(licenseReportRequest.getEndDate())
.build();