2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 07:57:21 +08:00

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

This commit is contained in:
耗子
2024-12-16 02:50:10 +08:00
parent a3bd4c5bcc
commit a70f3901f7

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