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:
commit
90a6fb5376
@ -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