add private object to store scheduled notifications

This commit is contained in:
2025-02-02 21:33:23 -08:00
parent 1e82ec2697
commit e9c2c8a7bc

View File

@@ -19,6 +19,14 @@ export class NotificationService {
constructor(private repository: GetterRepository) {} 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() { public reloadAPNsTokenIfTimePassed() {
if (this.lastReloadedTimeForAPNsIsTooRecent()) { if (this.lastReloadedTimeForAPNsIsTooRecent()) {
return; return;