Skip to content

Commit

Permalink
fix: 修改或删除任务失败
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Dec 16, 2023
1 parent c0431fa commit bcd6832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/crontab/manage.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func UndoById(userId, id uint) {
job, err := cronjob.Fetch(&cronjob.FetchParam{Id: id})

if err == nil && job.Id > 0 {
crontab.Remove(cron.EntryID(job.Id))
crontab.Remove(cron.EntryID(job.EntryId))
}

}
Expand All @@ -32,7 +32,7 @@ func RedoById(userId, id uint) {
job, err := cronjob.Fetch(&cronjob.FetchParam{Id: id})

if err == nil && job.Id > 0 {
crontab.Remove(cron.EntryID(job.Id))
crontab.Remove(cron.EntryID(job.EntryId))
NewByScriptJob(job)
}

Expand Down

0 comments on commit bcd6832

Please sign in to comment.