fix:#82 slowed down sport update schedule

This commit is contained in:
masterelmar
2023-12-13 10:14:57 +01:00
parent cdbbe4bbf9
commit 8463ec446f

View File

@@ -28,8 +28,8 @@ func AddSchedules(app *pocketbase.PocketBase) {
feed.ClearFeeds(app.Dao(), 6, time.RealClock{})
})
// Every day at 2am update all Sport events (5 segments - minute, hour, day, month, weekday) "0 2 * * *"
scheduler.MustAdd("fetchEvents", "0 2 * * *", func() {
// Every sunday at 2am fetch all sport events (5 segments - minute, hour, day, month, weekday) "0 2 * * 0"
scheduler.MustAdd("fetchEvents", "0 2 * * 0", func() {
sport.FetchAndUpdateSportEvents(app)
})