mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 07:57:21 +08:00
fix: 计划任务启用后仍显示未启用
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user