diff --git a/src/notifications/schedulers/ETANotificationScheduler.ts b/src/notifications/schedulers/ETANotificationScheduler.ts index 4e4e732..ac63f5c 100644 --- a/src/notifications/schedulers/ETANotificationScheduler.ts +++ b/src/notifications/schedulers/ETANotificationScheduler.ts @@ -15,14 +15,10 @@ export interface ScheduledNotificationData { export class ETANotificationScheduler { public readonly secondsThresholdForNotificationToFire = 180; - private appleNotificationSender = new AppleNotificationSender() - - private _lastRefreshedTimeMs: number | undefined = undefined; - get lastRefreshedTimeMs() { - return this._lastRefreshedTimeMs; - } - - constructor(private repository: GetterRepository, private shouldActuallySendNotifications = true) { + constructor(private repository: GetterRepository, + private shouldActuallySendNotifications = true, + private appleNotificationSender = new AppleNotificationSender() + ) { this.etaSubscriberCallback = this.etaSubscriberCallback.bind(this); this.sendEtaNotificationImmediately = this.sendEtaNotificationImmediately.bind(this); this.etaSubscriberCallback = this.etaSubscriberCallback.bind(this);