mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
update tests and index with updated scheduler interface
This commit is contained in:
@@ -30,11 +30,13 @@ async function main() {
|
||||
|
||||
const appleNotificationSender = new AppleNotificationSender(false);
|
||||
notificationRepository = new InMemoryNotificationRepository();
|
||||
|
||||
notificationService = new ETANotificationScheduler(
|
||||
shuttleRepository,
|
||||
notificationRepository,
|
||||
appleNotificationSender
|
||||
);
|
||||
notificationService.startListeningForUpdates();
|
||||
} else {
|
||||
const repositoryDataUpdater = new TimedApiBasedShuttleRepositoryLoader(
|
||||
shuttleRepository,
|
||||
@@ -46,6 +48,7 @@ async function main() {
|
||||
shuttleRepository,
|
||||
notificationRepository
|
||||
);
|
||||
notificationService.startListeningForUpdates();
|
||||
}
|
||||
|
||||
const { url } = await startStandaloneServer(server, {
|
||||
|
||||
Reference in New Issue
Block a user