fix: 计划任务启用后仍显示未启用

This commit is contained in:
耗子
2024-12-16 02:50:10 +08:00
parent a3bd4c5bcc
commit a70f3901f7
+3 -1
View File
@@ -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