mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-02 17:59:14 +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{})
|
||||
})
|
||||
|
||||
// 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)
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user