Skip to content

Commit

Permalink
fix: 计划任务启用后仍显示未启用
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Dec 15, 2024
1 parent a3bd4c5 commit a70f390
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/data/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a70f390

Please sign in to comment.