RED-3818: Fixed redactionlog migration

This commit is contained in:
deiflaender 2022-04-08 14:03:06 +02:00
parent 57ded0829a
commit 45767dfb05

View File

@ -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 -> {