RED-1810: improvement in test for undeleting dossier

This commit is contained in:
aoezyetimoglu 2021-10-06 16:48:19 +02:00
parent 171cc1e298
commit 564bc29cbd

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