From 4c8658a3d9a4443be690656ef1c8aa53dfe8280b Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Mon, 3 Feb 2025 22:52:35 -0800 Subject: [PATCH] bind all other methods to class --- src/services/NotificationService.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/services/NotificationService.ts b/src/services/NotificationService.ts index 2ed9ae9..ea9fbc8 100644 --- a/src/services/NotificationService.ts +++ b/src/services/NotificationService.ts @@ -20,6 +20,13 @@ export class NotificationService { constructor(private repository: GetterRepository) { this.etaSubscriberCallback = this.etaSubscriberCallback.bind(this); + this.reloadAPNsTokenIfTimePassed = this.reloadAPNsTokenIfTimePassed.bind(this); + this.lastReloadedTimeForAPNsIsTooRecent = this.lastReloadedTimeForAPNsIsTooRecent.bind(this); + this.sendEtaNotificationImmediately = this.sendEtaNotificationImmediately.bind(this); + this.getAPNsFullUrlToUse = this.getAPNsFullUrlToUse.bind(this); + this.etaSubscriberCallback = this.etaSubscriberCallback.bind(this); + this.sendEtaNotificationImmediatelyIfSecondsRemainingBelowThreshold = this.sendEtaNotificationImmediatelyIfSecondsRemainingBelowThreshold.bind(this); + this.scheduleNotification = this.scheduleNotification.bind(this); } /**