From bcd68321c87d853bedf8c40cd4685dc63bb05927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=A5=E6=B5=B7?= Date: Sat, 16 Dec 2023 21:12:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=88=96=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E4=BB=BB=E5=8A=A1=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/crontab/manage.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/crontab/manage.go b/module/crontab/manage.go index d40c1751..b9b73b5a 100644 --- a/module/crontab/manage.go +++ b/module/crontab/manage.go @@ -22,7 +22,7 @@ func UndoById(userId, id uint) { job, err := cronjob.Fetch(&cronjob.FetchParam{Id: id}) if err == nil && job.Id > 0 { - crontab.Remove(cron.EntryID(job.Id)) + crontab.Remove(cron.EntryID(job.EntryId)) } } @@ -32,7 +32,7 @@ func RedoById(userId, id uint) { job, err := cronjob.Fetch(&cronjob.FetchParam{Id: id}) if err == nil && job.Id > 0 { - crontab.Remove(cron.EntryID(job.Id)) + crontab.Remove(cron.EntryID(job.EntryId)) NewByScriptJob(job) }