differentiate between passio system ID and internal ID in loader class

This commit is contained in:
2025-04-07 13:26:19 -07:00
parent 12f0a41153
commit 25f2a8c458
5 changed files with 33 additions and 21 deletions

View File

@@ -43,7 +43,11 @@ export class InterchangeSystem {
args: InterchangeSystemBuilderArguments,
) {
const shuttleRepository = new UnoptimizedInMemoryShuttleRepository();
const shuttleDataLoader = new TimedApiBasedShuttleRepositoryLoader(args.passioSystemId, shuttleRepository);
const shuttleDataLoader = new TimedApiBasedShuttleRepositoryLoader(
args.passioSystemId,
args.id,
shuttleRepository
);
await shuttleDataLoader.start();
const notificationRepository = new RedisNotificationRepository();
@@ -75,7 +79,11 @@ export class InterchangeSystem {
args: InterchangeSystemBuilderArguments,
) {
const shuttleRepository = new UnoptimizedInMemoryShuttleRepository();
const shuttleDataLoader = new ApiBasedShuttleRepositoryLoader(args.passioSystemId, shuttleRepository);
const shuttleDataLoader = new ApiBasedShuttleRepositoryLoader(
args.passioSystemId,
args.id,
shuttleRepository
);
const notificationRepository = new InMemoryNotificationRepository();
const notificationScheduler = new ETANotificationScheduler(