diff --git a/src/main/java/uk/gov/hmcts/darts/common/service/impl/DataAnonymisationServiceImpl.java b/src/main/java/uk/gov/hmcts/darts/common/service/impl/DataAnonymisationServiceImpl.java index 33e7064ef8..309627cde8 100644 --- a/src/main/java/uk/gov/hmcts/darts/common/service/impl/DataAnonymisationServiceImpl.java +++ b/src/main/java/uk/gov/hmcts/darts/common/service/impl/DataAnonymisationServiceImpl.java @@ -65,7 +65,7 @@ void anonymiseCourtCaseEntity(UserAccountEntity userAccount, CourtCaseEntity cou courtCase.getDefenceList().forEach(defenceEntity -> anonymiseDefenceEntity(userAccount, defenceEntity)); courtCase.getProsecutorList().forEach(prosecutorEntity -> anonymiseProsecutorEntity(userAccount, prosecutorEntity)); courtCase.getHearings().forEach(hearingEntity -> anonymiseHearingEntity(userAccount, hearingEntity)); - anonymizeAllEventsFromCase(userAccount, courtCase); + anonymiseAllEventsFromCase(userAccount, courtCase); courtCase.markAsExpired(userAccount); //This also saves defendant, defence and prosecutor entities @@ -189,7 +189,7 @@ private void anonymiseCreatedModifiedBaseEntity(UserAccountEntity userAccount, C entity.setLastModifiedDateTime(currentTimeHelper.currentOffsetDateTime()); } - private void anonymizeAllEventsFromCase(UserAccountEntity userAccount, CourtCaseEntity courtCase) { + private void anonymiseAllEventsFromCase(UserAccountEntity userAccount, CourtCaseEntity courtCase) { eventService.getAllCourtCaseEventVersions(courtCase).forEach(eventEntity -> anonymiseEventEntity(userAccount, eventEntity)); } } \ No newline at end of file