This commit is contained in:
Samuel Tariku 2025-04-28 20:58:57 +03:00
parent e9300f63e2
commit 386965ea4e

View File

@ -65,6 +65,7 @@ func StartDataFetchingCrons(eventService eventsvc.Service, oddsService oddssvc.S
}
for _, job := range schedule {
job.task()
if _, err := c.AddFunc(job.spec, job.task); err != nil {
log.Fatalf("Failed to schedule cron job: %v", err)
}