RED-2422: Port DeletedFilesCleanupService from filemanagement service
This commit is contained in:
parent
e0aa7838aa
commit
6b707936ef
@ -45,6 +45,7 @@ public class DeletedFilesCleanupService {
|
||||
if (fileEntity.getHardDeletedTime() == null && fileEntity.getDeleted() != null && fileEntity.getDeleted()
|
||||
.isBefore(now.minusHours(settings.getSoftDeleteCleanupTime()))) {
|
||||
fileService.hardDeleteFile(dossierEntity.getId(), fileEntity.getId());
|
||||
fileStatusService.setFileStatusHardDeleted(fileEntity.getId());
|
||||
log.info("Hard deleted file with dossier id {} and file id {}", dossierEntity.getId(), fileEntity.getId());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user