From e9c2c8a7bc0920a2299bf4c16d3cb8e372ca1e35 Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Sun, 2 Feb 2025 21:33:23 -0800 Subject: [PATCH] add private object to store scheduled notifications --- src/services/NotificationService.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/services/NotificationService.ts b/src/services/NotificationService.ts index 65a2f0a..51e56af 100644 --- a/src/services/NotificationService.ts +++ b/src/services/NotificationService.ts @@ -19,6 +19,14 @@ export class NotificationService { constructor(private repository: GetterRepository) {} + /** + * An object of device ID arrays to deliver notifications to. + * The key should be a combination of the shuttle ID and + * stop ID, which can be generated using `TupleKey`. + * @private + */ + private deviceIdsToDeliverTo: { [key: string]: string[] } = {} + public reloadAPNsTokenIfTimePassed() { if (this.lastReloadedTimeForAPNsIsTooRecent()) { return;