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

This commit is contained in:
Andrei Isvoran 2023-08-24 10:07:03 +03:00
parent 96d4407f53
commit 7f7dd7a182

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)