fix: job function passed to DoWithJobDetails
All checks were successful
CI / test (pull_request) Successful in 58s

This commit is contained in:
2024-08-11 09:34:04 +02:00
parent e232e84f64
commit 3d70154146

View File

@@ -54,7 +54,7 @@ func main() {
s := gocron.NewScheduler(time.UTC)
s.SingletonMode()
job, err := s.CronWithSeconds(configClient.CheckInterval).DoWithJobDetails(func(in string, job gocron.Job) {
job, err := s.CronWithSeconds(configClient.CheckInterval).DoWithJobDetails(func(job gocron.Job) {
numberChanged, err := changeDetector.DetectAndApplyChanges()
if err != nil {
panic(err)