RED-7918 - RM-62: "Last Modified" date not updated after change

- update the timestamps for redactionModificationDate and lastManualChangeDate with current time when deleting a manual redaction
This commit is contained in:
Corina Olariu 2023-11-17 15:31:47 +02:00
parent 4b0f487d31
commit acab9f54e8

View File

@ -199,6 +199,8 @@ public class ManualRedactionService {
if (manualAddRedactionsContains(manualRedactions, removeRedactionRequest.getAnnotationId()) && AnnotationStatus.APPROVED.equals(removeRedactionRequest.getStatus())) {
log.info("hard delete ManualRedactions for file {} and annotation {}", fileId, removeRedactionRequest.getAnnotationId());
manualRedactionProviderService.hardDeleteManualRedactions(fileId, removeRedactionRequest.getAnnotationId());
fileStatusPersistenceService.setLastRedactionModificationDateForFile(fileId, OffsetDateTime.now());
fileStatusPersistenceService.setLastManualChangeDate(fileId, OffsetDateTime.now());
} else {
log.info("add removeRedaction for file {} and annotation {}", fileId, removeRedactionRequest.getAnnotationId());