From 96d4acb762f8509fe2579caee94a3ee92bb84b31 Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Mon, 7 Apr 2025 12:49:06 -0700 Subject: [PATCH] construct AppleNotificationSender to not send notifications --- src/entities/InterchangeSystem.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/entities/InterchangeSystem.ts b/src/entities/InterchangeSystem.ts index 106ea01..4db31a6 100644 --- a/src/entities/InterchangeSystem.ts +++ b/src/entities/InterchangeSystem.ts @@ -6,6 +6,7 @@ import { RedisNotificationRepository } from "../repositories/RedisNotificationRe import { NotificationRepository } from "../repositories/NotificationRepository"; import { ShuttleGetterSetterRepository } from "../repositories/ShuttleGetterSetterRepository"; import { InMemoryNotificationRepository } from "../repositories/InMemoryNotificationRepository"; +import { AppleNotificationSender } from "../notifications/senders/AppleNotificationSender"; export interface InterchangeSystemBuilderArguments { name: string; @@ -44,7 +45,11 @@ export class InterchangeSystem { const shuttleDataLoader = new TimedApiBasedShuttleRepositoryLoader(args.passioSystemId, shuttleRepository); const notificationRepository = new InMemoryNotificationRepository(); - const notificationScheduler = new ETANotificationScheduler(shuttleRepository, notificationRepository); + const notificationScheduler = new ETANotificationScheduler( + shuttleRepository, + notificationRepository, + new AppleNotificationSender(false), + ); return new InterchangeSystem( args.name,