Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
oddsson committed Dec 13, 2024
1 parent 892b2f8 commit 270f8ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,15 @@ export const districtCourtJudgeNotificationRule: RolesRule = {
role: UserRole.DISTRICT_COURT_JUDGE,
type: RulesType.FIELD_VALUES,
dtoField: 'type',
dtoFieldValues: [
CaseNotificationType.COURT_DATE,
CaseNotificationType.DISTRICT_COURT_JUDGE_ASSIGNED,
CaseNotificationType.DISTRICT_COURT_REGISTRAR_ASSIGNED,
],
dtoFieldValues: [CaseNotificationType.COURT_DATE],
}

// Allows district court registrars to send notifications
export const districtCourtRegistrarNotificationRule: RolesRule = {
role: UserRole.DISTRICT_COURT_REGISTRAR,
type: RulesType.FIELD_VALUES,
dtoField: 'type',
dtoFieldValues: [
CaseNotificationType.COURT_DATE,
CaseNotificationType.DISTRICT_COURT_JUDGE_ASSIGNED,
CaseNotificationType.DISTRICT_COURT_REGISTRAR_ASSIGNED,
],
dtoFieldValues: [CaseNotificationType.COURT_DATE],
}

// Allows district court assistants to send notifications
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ export class NotificationService {
case CaseNotificationType.APPEAL_JUDGES_ASSIGNED:
case CaseNotificationType.APPEAL_CASE_FILES_UPDATED:
case CaseNotificationType.CASE_FILES_UPDATED:
case CaseNotificationType.DISTRICT_COURT_JUDGE_ASSIGNED:
case CaseNotificationType.DISTRICT_COURT_REGISTRAR_ASSIGNED:
messages = [this.getNotificationMessage(type, user, theCase)]
break
default:
Expand Down

0 comments on commit 270f8ea

Please sign in to comment.