RED-5984: Do not set ProcessedDate for manual redaction with update dictionary before analysed

This commit is contained in:
deiflaender 2023-01-18 09:32:27 +01:00
parent 733d41feac
commit b3d17223f4

View File

@ -37,7 +37,7 @@ public class ResizeRedactionPersistenceService {
manualResizeRedaction.setPositions(convert(resizeRedactionRequest.getPositions(), RectangleEntity.class));
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));
}