Skip to content

Commit

Permalink
Fixing anonymize spelling (#2276)
Browse files Browse the repository at this point in the history
  • Loading branch information
davet1985 authored Nov 15, 2024
1 parent 8fa97dc commit a147afa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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));
}
}

0 comments on commit a147afa

Please sign in to comment.