From bf06c7ed3a48fe81465e1f7372b0cb25e5d3b002 Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Wed, 23 Apr 2025 11:55:15 -0700 Subject: [PATCH] update custom keys passed through notification scheduler --- src/notifications/schedulers/ETANotificationScheduler.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/notifications/schedulers/ETANotificationScheduler.ts b/src/notifications/schedulers/ETANotificationScheduler.ts index b269982..328f36c 100644 --- a/src/notifications/schedulers/ETANotificationScheduler.ts +++ b/src/notifications/schedulers/ETANotificationScheduler.ts @@ -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);