diff --git a/.env.example b/.env.example index 7050e94..83a29ff 100644 --- a/.env.example +++ b/.env.example @@ -13,4 +13,5 @@ TEST_DB_NAME= TEST_DB_SSL= COOKIE_STRING= ALLOW_REGISTRATION= +HEADLESS= LOGGER_WEBHOOK_URL= \ No newline at end of file diff --git a/backend/internal/ktmtrainbot/backgroundbookingjob.go b/backend/internal/ktmtrainbot/backgroundbookingjob.go index 5cabd04..b900b09 100644 --- a/backend/internal/ktmtrainbot/backgroundbookingjob.go +++ b/backend/internal/ktmtrainbot/backgroundbookingjob.go @@ -77,7 +77,7 @@ func (env *Env) BackgroundJobRunner() { } else { // if there's job to do // Create next run where it's not the past (either from old NextRun or now()) timeNow := time.Now() - startTime := time.Date(timeNow.Year(), timeNow.Month(), timeNow.Day(), 22, 34, 0, 0, timeNow.Location()) + startTime := time.Date(timeNow.Year(), timeNow.Month(), timeNow.Day(), 00, 10, 0, 0, timeNow.Location()) endTime := startTime.Add(10 * time.Minute) if timeNow.After(startTime) && timeNow.Before(endTime) {