Hotfix for duplicate entries in redactionLog
This commit is contained in:
parent
48c100c25a
commit
191da4e5d3
@ -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;
|
return redactionLog;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user