Hotfix for duplicate entries in redactionLog

This commit is contained in:
deiflaender 2021-11-30 15:58:24 +01:00
parent bea9abc30c
commit 9818ca7224

View File

@ -50,6 +50,14 @@ public class RedactionLogMergeService {
}
Set<String> processedIds = new HashSet<>();
redactionLog.getRedactionLogEntry().removeIf(entry -> {
if(processedIds.contains(entry.getId())){
return true;
}
processedIds.add(entry.getId());
return false;
});
return redactionLog;
}