chore: trt to fix restore bool val #70
This commit is contained in:
@@ -287,7 +287,7 @@ func (tc *TaskController) UpdateTask(c *gin.Context) {
|
||||
}
|
||||
} else {
|
||||
// 本地任务
|
||||
if task.Enabled {
|
||||
if utils.DerefBool(task.Enabled, true) {
|
||||
tc.executorService.AddCronTask(task)
|
||||
} else {
|
||||
tc.executorService.RemoveCronTask(task.ID)
|
||||
|
||||
Reference in New Issue
Block a user