Merge branch 'RED-9530-4.0' into 'release/2.349.x'

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

See merge request redactmanager/persistence-service!575
This commit is contained in:
Dominique Eifländer 2024-07-03 11:40:40 +02:00
commit f49b922af0

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())