From ecc6a55aba7bb35fc778e7a53848396b88214151 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Sat, 23 Aug 2025 22:29:28 +0100 Subject: Add multiple conferences feature --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 545ac82..48f2e74 100644 --- a/main.go +++ b/main.go @@ -10,10 +10,10 @@ import ( "github.com/LMBishop/confplanner/internal/config" "github.com/LMBishop/confplanner/pkg/auth" "github.com/LMBishop/confplanner/pkg/calendar" + "github.com/LMBishop/confplanner/pkg/conference" "github.com/LMBishop/confplanner/pkg/database" "github.com/LMBishop/confplanner/pkg/favourites" "github.com/LMBishop/confplanner/pkg/ical" - "github.com/LMBishop/confplanner/pkg/schedule" "github.com/LMBishop/confplanner/pkg/session" "github.com/LMBishop/confplanner/pkg/user" "github.com/LMBishop/confplanner/web" @@ -44,12 +44,12 @@ func run() error { userService := user.NewService(pool, c.AcceptRegistrations) favouritesService := favourites.NewService(pool) - scheduleService, err := schedule.NewService(c.Conference.ScheduleURL) + conferenceService, err := conference.NewService(pool) if err != nil { return fmt.Errorf("failed to create schedule service: %w", err) } calendarService := calendar.NewService(pool) - icalService := ical.NewService(favouritesService, scheduleService) + icalService := ical.NewService(favouritesService, conferenceService) sessionService := session.NewMemoryStore() authService := auth.NewService() @@ -82,7 +82,7 @@ func run() error { api := api.NewServer(api.ApiServices{ UserService: userService, FavouritesService: favouritesService, - ScheduleService: scheduleService, + ConferenceService: conferenceService, CalendarService: calendarService, IcalService: icalService, SessionService: sessionService, -- cgit v1.2.3-70-g09d2