RED-3758: Update processed date only for approved manual redactions without processedDate
This commit is contained in:
parent
6e38ace691
commit
d56d409a39
@ -627,28 +627,28 @@ public class ManualRedactionService {
|
||||
|
||||
if (manualRedactions.getEntriesToAdd() != null) {
|
||||
manualRedactions.getEntriesToAdd().forEach(e -> {
|
||||
if (e.getStatus().equals(AnnotationStatus.APPROVED)) {
|
||||
if (e.getStatus().equals(AnnotationStatus.APPROVED) && e.getProcessedDate() == null) {
|
||||
addRedactionPersistenceService.markAsProcessed(e);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (manualRedactions.getIdsToRemove() != null) {
|
||||
manualRedactions.getIdsToRemove().forEach(e -> {
|
||||
if (e.getStatus().equals(AnnotationStatus.APPROVED)) {
|
||||
if (e.getStatus().equals(AnnotationStatus.APPROVED) && e.getProcessedDate() == null) {
|
||||
removeRedactionPersistenceService.markAsProcessed(e);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (manualRedactions.getForceRedactions() != null) {
|
||||
manualRedactions.getForceRedactions().forEach(e -> {
|
||||
if (e.getStatus().equals(AnnotationStatus.APPROVED)) {
|
||||
if (e.getStatus().equals(AnnotationStatus.APPROVED) && e.getProcessedDate() == null) {
|
||||
forceRedactionPersistenceService.markAsProcessed(e);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (manualRedactions.getImageRecategorization() != null) {
|
||||
manualRedactions.getImageRecategorization().forEach(e -> {
|
||||
if (e.getStatus().equals(AnnotationStatus.APPROVED)) {
|
||||
if (e.getStatus().equals(AnnotationStatus.APPROVED) && e.getProcessedDate() == null) {
|
||||
recategorizationPersistenceService.markAsProcessed(e);
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user