Skip to content

Commit

Permalink
chore: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
deeonwuli committed Sep 17, 2024
1 parent b847dfa commit 3679128
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/data/repositories/utils/AlertOutbreakMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ export function mapTrackedEntityAttributesToAlertOptions(
return diseaseOutbreak;
}

export function mapAlertOutbreakToTrackedEntity() {}

export function getAlertValueFromMap(
key: keyof typeof alertOutbreakCodes,
trackedEntity: D2TrackerTrackedEntity
Expand Down
3 changes: 2 additions & 1 deletion src/domain/usecases/MapDiseaseOutbreakToAlertsUseCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Future } from "../entities/generic/Future";
import { hazardTypeCodeMap } from "../../data/repositories/consts/DiseaseOutbreakConstants";
import { AlertSyncRepository } from "../repositories/AlertSyncRepository";
import { OptionsRepository } from "../repositories/OptionsRepository";
import { Alert } from "../entities/alert/Alert";

type DiseaseOutbreakEventData = Pick<
DiseaseOutbreakEventBaseAttrs,
Expand Down Expand Up @@ -40,7 +41,7 @@ export class MapDiseaseOutbreakToAlertsUseCase {
incidentStatus: incidentStatus,
suspectedDiseaseCode: suspectedDiseaseCode,
})
.flatMap(alerts =>
.flatMap((alerts: Alert[]) =>
Future.joinObj({
hazardTypes: this.optionsRepository.getHazardTypesByCode(),
suspectedDiseases: this.optionsRepository.getSuspectedDiseases(),
Expand Down

0 comments on commit 3679128

Please sign in to comment.