mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add system id to the notification payload for good measure
This commit is contained in:
@@ -13,7 +13,8 @@ export class ETANotificationScheduler {
|
||||
constructor(
|
||||
private shuttleRepository: ShuttleGetterRepository,
|
||||
private notificationRepository: NotificationRepository = new InMemoryNotificationRepository(),
|
||||
private appleNotificationSender = new AppleNotificationSender()
|
||||
private appleNotificationSender = new AppleNotificationSender(),
|
||||
private interchangeSystemId: string,
|
||||
) {
|
||||
this.etaSubscriberCallback = this.etaSubscriberCallback.bind(this);
|
||||
this.sendEtaNotificationImmediately = this.sendEtaNotificationImmediately.bind(this);
|
||||
@@ -47,6 +48,7 @@ export class ETANotificationScheduler {
|
||||
body: `Shuttle is approaching ${stop.name} in ${Math.ceil(eta.secondsRemaining / 60)} minutes.`,
|
||||
customKeys: {
|
||||
shuttleId,
|
||||
systemId: this.interchangeSystemId,
|
||||
},
|
||||
}
|
||||
return this.appleNotificationSender.sendNotificationImmediately(deviceId, notificationAlertArguments);
|
||||
|
||||
Reference in New Issue
Block a user