Merge branch 'RED-9530-4.1' into 'release/2.465.x'

RED-9530: Fixed single and bulk create download endpoints in api v2

See merge request redactmanager/persistence-service!574
This commit is contained in:
Dominique Eifländer 2024-07-03 11:39:20 +02:00
commit eeb2838bcb

View File

@ -176,10 +176,7 @@ public class FileControllerV2 implements FileResource {
var storageId = downloadController.prepareDownload(PrepareDownloadWithOptionRequest.builder()
.dossierId(dossierId)
.fileIds(statusController.getDossierStatus(dossierId)
.stream()
.map(FileStatus::getId)
.toList())
.fileIds(bulkDownloadRequest.getFileIds())
.reportTemplateIds(bulkDownloadRequest.getReportTemplateIds())
.downloadFileTypes(bulkDownloadRequest.getDownloadFileTypes())
.redactionPreviewColor(bulkDownloadRequest.getRedactionPreviewColor())