Pull request #42: RED-1810: improvement in test for undeleting dossier

Merge in RED/persistence-service from RED-1810-ps2 to master

* commit '564bc29cbdccedb06aacb8360d6506adcb0d0802':
  RED-1810: improvement in test for undeleting dossier
This commit is contained in:
Ali Oezyetimoglu 2021-10-06 16:53:31 +02:00
commit 90a6fb5376

View File

@ -251,7 +251,7 @@ public class FileStatusPersistenceService {
fileRepository.findById(fileId).ifPresentOrElse((file) -> {
if (file.getHardDeletedTime() != null) {
throw new BadRequestException("Cannot undelete a hard-deleted file!");
throw new BadRequestException("Cannot undelete a hard-deleted dossier file!");
}
file.setStatus(statusBefore != null ? statusBefore : FileStatus.UNASSIGNED);
file.setDeleted(null);