From a70f3901f7ff78f2390de6924cc793096b2c9e7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Mon, 16 Dec 2024 02:50:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=A1=E5=88=92=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=90=AF=E7=94=A8=E5=90=8E=E4=BB=8D=E6=98=BE=E7=A4=BA=E6=9C=AA?= =?UTF-8?q?=E5=90=AF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/data/cron.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/data/cron.go b/internal/data/cron.go index 05f8477d67..e267fa068d 100644 --- a/internal/data/cron.go +++ b/internal/data/cron.go @@ -188,7 +188,9 @@ func (r *cronRepo) Status(id uint, status bool) error { return err } if status { - return r.addToSystem(cron) + if err = r.addToSystem(cron); err != nil { + return err + } } cron.Status = status