Merge pull request #44

hotfix/update-custom-keys-name
This commit is contained in:
Brendan Chen
2025-04-23 17:18:01 -07:00
committed by GitHub
2 changed files with 6 additions and 4 deletions

View File

@@ -47,9 +47,11 @@ export class ETANotificationScheduler {
title: "Shuttle is arriving", title: "Shuttle is arriving",
body: `Shuttle is approaching ${stop.name} in ${Math.ceil(eta.secondsRemaining / 60)} minutes.`, body: `Shuttle is approaching ${stop.name} in ${Math.ceil(eta.secondsRemaining / 60)} minutes.`,
customKeys: { customKeys: {
shuttleId, shuttleEtaNotificationInfo: {
stopId, shuttleId,
systemId: this.interchangeSystemId, stopId,
systemId: this.interchangeSystemId,
}
}, },
} }
return this.appleNotificationSender.sendNotificationImmediately(deviceId, notificationAlertArguments); return this.appleNotificationSender.sendNotificationImmediately(deviceId, notificationAlertArguments);

View File

@@ -119,7 +119,7 @@ export class AppleNotificationSender {
alert: notificationAlertArguments, alert: notificationAlertArguments,
sound: "default" sound: "default"
}, },
customKeys, ...customKeys,
}); });
req.write(payload); req.write(payload);
req.end(); req.end();