From d0e4cc7a6014b7819528e74c7e220850fab8335a Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Mon, 26 Feb 2024 01:25:28 +0100 Subject: [PATCH] fixed the cronTab running an invalid query --- server/backend/cron/cronjobs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/backend/cron/cronjobs.go b/server/backend/cron/cronjobs.go index f78b8d9f..75f4752d 100644 --- a/server/backend/cron/cronjobs.go +++ b/server/backend/cron/cronjobs.go @@ -49,7 +49,7 @@ func (c *CronService) Run() error { var res []model.Crontab c.db.Model(&model.Crontab{}). - Where("`interval` > 0 AND (lastRun+`interval`) < ? AND type IN (?, ?, ?, ?, ?, ?, ?, ?, ?)", + Where("`interval` > 0 AND (lastRun+`interval`) < ? AND type IN (?, ?, ?, ?, ?, ?)", time.Now().Unix(), NewsType, FileDownloadType,