RED-1810: improvement in test for undeleting dossier
This commit is contained in:
parent
171cc1e298
commit
564bc29cbd
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user