mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
@@ -47,9 +47,11 @@ export class ETANotificationScheduler {
|
||||
title: "Shuttle is arriving",
|
||||
body: `Shuttle is approaching ${stop.name} in ${Math.ceil(eta.secondsRemaining / 60)} minutes.`,
|
||||
customKeys: {
|
||||
shuttleId,
|
||||
stopId,
|
||||
systemId: this.interchangeSystemId,
|
||||
shuttleEtaNotificationInfo: {
|
||||
shuttleId,
|
||||
stopId,
|
||||
systemId: this.interchangeSystemId,
|
||||
}
|
||||
},
|
||||
}
|
||||
return this.appleNotificationSender.sendNotificationImmediately(deviceId, notificationAlertArguments);
|
||||
|
||||
@@ -119,7 +119,7 @@ export class AppleNotificationSender {
|
||||
alert: notificationAlertArguments,
|
||||
sound: "default"
|
||||
},
|
||||
customKeys,
|
||||
...customKeys,
|
||||
});
|
||||
req.write(payload);
|
||||
req.end();
|
||||
|
||||
Reference in New Issue
Block a user