mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
add private object to store scheduled notifications
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user