construct AppleNotificationSender to not send notifications

This commit is contained in:
2025-04-07 12:49:06 -07:00
parent 87dfd0dab1
commit 96d4acb762

View File

@@ -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,