RED-3818: Fixed redactionlog migration
This commit is contained in:
parent
57ded0829a
commit
45767dfb05
@ -44,7 +44,7 @@ public class DictionaryToEntityMigration2 extends Migration {
|
||||
dossiers.forEach(dossier -> {
|
||||
var files = fileStatusPersistenceService.getStatusesForDossier(dossier.getId());
|
||||
files.forEach(file -> {
|
||||
if(file.getDeleted() != null){
|
||||
if(file.getDeleted() == null){
|
||||
var redactionLog = fileManagementStorageService.getRedactionLog(dossier.getId(), file.getId());
|
||||
redactionLog.getRedactionLogEntry().removeIf(entry -> entry.getType().equals("false_positive"));
|
||||
redactionLog.getRedactionLogEntry().forEach(entry -> {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user