fix: use DailyJob

This commit is contained in:
Derrick Hammer 2024-03-11 11:00:34 -04:00
parent 96ec3b8501
commit c63f7ef50b
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ type PriceTracker struct {
}
func (p PriceTracker) LoadInitialTasks(cron cron.CronService) error {
job := gocron.DurationJob(time.Minute)
job := gocron.DailyJob(1, gocron.NewAtTimes(gocron.NewAtTime(0, 0, 0)))
_, err := cron.Scheduler().NewJob(
job,
gocron.NewTask(p.recordRate),