From 9869632a88cc868e64adae1b901234b897a0b87b Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Mon, 24 Mar 2025 09:42:41 -0700 Subject: [PATCH] change reloadAPNsTokenIfTimePassed method to public for testing --- src/notifications/senders/AppleNotificationSender.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notifications/senders/AppleNotificationSender.ts b/src/notifications/senders/AppleNotificationSender.ts index 7bfa0d9..4a171c5 100644 --- a/src/notifications/senders/AppleNotificationSender.ts +++ b/src/notifications/senders/AppleNotificationSender.ts @@ -21,7 +21,7 @@ export class AppleNotificationSender { return this._lastRefreshedTimeMs && Date.now() - this._lastRefreshedTimeMs < thirtyMinutesMs; } - private reloadAPNsTokenIfTimePassed() { + public reloadAPNsTokenIfTimePassed() { if (this.lastReloadedTimeForAPNsIsTooRecent()) { return; }