RED-5984: Do not set ProcessedDate for manual redaction with update dictionary before analysed
This commit is contained in:
parent
733d41feac
commit
b3d17223f4
@ -37,7 +37,7 @@ public class ResizeRedactionPersistenceService {
|
|||||||
manualResizeRedaction.setPositions(convert(resizeRedactionRequest.getPositions(), RectangleEntity.class));
|
manualResizeRedaction.setPositions(convert(resizeRedactionRequest.getPositions(), RectangleEntity.class));
|
||||||
manualResizeRedaction.setRequestDate(OffsetDateTime.now());
|
manualResizeRedaction.setRequestDate(OffsetDateTime.now());
|
||||||
|
|
||||||
if (manualResizeRedaction.getStatus().equals(AnnotationStatus.APPROVED)) {
|
if (manualResizeRedaction.getStatus().equals(AnnotationStatus.APPROVED) && (manualResizeRedaction.getUpdateDictionary() == null || !manualResizeRedaction.getUpdateDictionary())) {
|
||||||
manualResizeRedaction.setProcessedDate(OffsetDateTime.now().truncatedTo(ChronoUnit.MILLIS));
|
manualResizeRedaction.setProcessedDate(OffsetDateTime.now().truncatedTo(ChronoUnit.MILLIS));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user