Pull request #424: RED-4028 - fixed error in hard delete file

Merge in RED/persistence-service from RED-4028 to master

* commit '9ab92b86c2d358305231f0877acee692461debce':
  RED-4028 - fixed error in hard delete file
This commit is contained in:
Timo Bejan 2022-06-02 19:56:17 +02:00
commit e4b8dfffe3
2 changed files with 3 additions and 3 deletions

View File

@ -78,9 +78,9 @@ public class AddRedactionPersistenceService {
} }
public Set<ManualRedactionEntryEntity> findAddRedactions(String fileId, boolean includeDeletions) { public List<ManualRedactionEntryEntity> findAddRedactions(String fileId, boolean includeDeletions) {
return new HashSet<>(manualRedactionRepository.findByFileIdIncludeDeletions(fileId, includeDeletions)); return manualRedactionRepository.findByFileIdIncludeDeletions(fileId, includeDeletions);
} }

View File

@ -118,7 +118,7 @@ public class ManualRedactionProviderService {
} }
private Set<ManualRedactionEntry> convertEntriesToAdd(Set<ManualRedactionEntryEntity> source) { private Set<ManualRedactionEntry> convertEntriesToAdd(List<ManualRedactionEntryEntity> source) {
return source.stream().map(entry -> convert(entry, ManualRedactionEntry.class, new ManualRedactionMapper())).collect(Collectors.toSet()); return source.stream().map(entry -> convert(entry, ManualRedactionEntry.class, new ManualRedactionMapper())).collect(Collectors.toSet());
} }