mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-08-03 18:29:16 +02:00
fix:#82 slowed down sport update schedule
This commit is contained in:
@@ -28,8 +28,8 @@ func AddSchedules(app *pocketbase.PocketBase) {
|
|||||||
feed.ClearFeeds(app.Dao(), 6, time.RealClock{})
|
feed.ClearFeeds(app.Dao(), 6, time.RealClock{})
|
||||||
})
|
})
|
||||||
|
|
||||||
// Every day at 2am update all Sport events (5 segments - minute, hour, day, month, weekday) "0 2 * * *"
|
// Every sunday at 2am fetch all sport events (5 segments - minute, hour, day, month, weekday) "0 2 * * 0"
|
||||||
scheduler.MustAdd("fetchEvents", "0 2 * * *", func() {
|
scheduler.MustAdd("fetchEvents", "0 2 * * 0", func() {
|
||||||
sport.FetchAndUpdateSportEvents(app)
|
sport.FetchAndUpdateSportEvents(app)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user