Merge branch 'RED-7500' into 'master'

RED-7500 - Delete file from storage when deleting download status

Closes RED-7500

See merge request redactmanager/persistence-service!91
This commit is contained in:
Andrei Isvoran 2023-08-24 09:53:10 +02:00
commit 6a544df044

View File

@ -181,6 +181,7 @@ public class DownloadController implements DownloadResource {
removeDownloadRequest.getStorageIds().forEach(storageId -> {
downloadService.deleteDownloadStatus(JSONPrimitive.of(storageId));
fileManagementStorageService.deleteObject(storageId);
auditPersistenceService.audit(AuditRequest.builder()
.userId(KeycloakSecurity.getUserId())
.objectId(storageId)