fix schedule time
This commit is contained in:
2
main.go
2
main.go
@@ -206,7 +206,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_, err = s.NewJob(
|
_, err = s.NewJob(
|
||||||
gocron.DailyJob(1, gocron.NewAtTimes(gocron.NewAtTime(0, 0, 0))),
|
gocron.DailyJob(1, gocron.NewAtTimes(gocron.NewAtTime(7, 0, 0))),
|
||||||
gocron.NewTask(updateSummaries, &state, locKey, &loc),
|
gocron.NewTask(updateSummaries, &state, locKey, &loc),
|
||||||
gocron.WithStartAt(gocron.WithStartImmediately()),
|
gocron.WithStartAt(gocron.WithStartImmediately()),
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user