fix:#65 fixed sport events

This commit is contained in:
Elmar Kresse
2024-03-16 00:06:12 +01:00
parent 9f316c596a
commit deae07bd33
3 changed files with 11 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ func AddSchedules(app *pocketbase.PocketBase) {
feed.ClearFeeds(app.Dao(), 6, time.RealClock{})
})
// Every sunday at 2am fetch all sport events (5 segments - minute, hour, day, month, weekday) "0 2 * * 0"
// Every sunday at 3am fetch all sport events (5 segments - minute, hour, day, month, weekday) "0 2 * * 0"
scheduler.MustAdd("fetchSportEvents", "0 3 * * 0", func() {
slog.Info("Started fetching sport events schedule")
sportEvents, err := sport.FetchAndUpdateSportEvents(app)