update dictionary before preview

This commit is contained in:
Timo 2021-07-13 15:18:06 +03:00
parent 9da4342939
commit b42dd58824

View File

@ -161,8 +161,9 @@ public class RedactionController implements RedactionResource {
public RedactionLog getRedactionLogPreview(RedactionRequest redactionRequest) {
log.info("Requested preview for: {}", redactionRequest);
var redactionLog = redactionStorageService.getRedactionLog(redactionRequest.getDossierId(), redactionRequest.getFileId());
dictionaryService.updateDictionary(redactionRequest.getDossierTemplateId(), redactionRequest.getDossierId());
var redactionLog = redactionStorageService.getRedactionLog(redactionRequest.getDossierId(), redactionRequest.getFileId());
return redactionLogCreatorService.getRedactionLogPreview(redactionLog, redactionRequest.getDossierTemplateId(), redactionRequest.getManualRedactions());
}