chore: trt to fix restore bool val #70

This commit is contained in:
duorameng
2026-04-18 13:04:53 +08:00
parent 1bd7082f33
commit 4b644e272e
17 changed files with 62 additions and 45 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ func (ts *TaskService) CreateTask(name, command, schedule string, timeout int, w
Envs: models.BigText(envs),
Languages: languages,
AgentID: agentID,
Enabled: true,
Enabled: utils.BoolPtr(true),
RetryCount: retryCount,
RetryInterval: retryInterval,
RandomRange: randomRange,
@@ -113,7 +113,7 @@ func (ts *TaskService) UpdateTask(id string, name, command, schedule string, tim
task.WorkDir = workDir
task.CleanConfig = cleanConfig
task.Envs = models.BigText(envs)
task.Enabled = enabled
task.Enabled = &enabled
task.AgentID = agentID
task.Languages = languages
task.Config = models.BigText(config)