RED-7317: set DictionaryEntryType to ENTRY by default

This commit is contained in:
Kilian Schuettler 2023-09-04 12:06:27 +02:00
parent b63fc5adb2
commit 73afa0f349
2 changed files with 4 additions and 2 deletions

View File

@ -169,6 +169,7 @@ public class ManualRedactionController implements ManualRedactionResource {
.message("Manual redaction was added.")
.details(Map.of(DOSSIER_ID, dossierId, FILE_ID, fileId, ANNOTATION_ID, response.getAnnotationId()))
.build()));
return responseList;
}

View File

@ -45,7 +45,8 @@ public class AddRedactionRequestModel {
private boolean rectangle;
private String sourceId;
private DictionaryEntryType dictionaryEntryType;
@Builder.Default
private DictionaryEntryType dictionaryEntryType = DictionaryEntryType.ENTRY;
}