bind all other methods to class

This commit is contained in:
2025-02-03 22:52:35 -08:00
parent 16d2d4b4ef
commit 4c8658a3d9

View File

@@ -20,6 +20,13 @@ export class NotificationService {
constructor(private repository: GetterRepository) { constructor(private repository: GetterRepository) {
this.etaSubscriberCallback = this.etaSubscriberCallback.bind(this); 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);
} }
/** /**