fix: backup and restore bool val error #70

This commit is contained in:
engigu
2026-03-31 11:44:01 +08:00
parent c6e4d8781c
commit 18e6681f96
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ func (ts *TaskService) CreateTask(name, command, schedule string, timeout int, w
if triggerType != constant.TriggerTypeCron {
task.NextRun = nil
}
database.DB.Create(task)
database.DB.Select("*").Create(task)
return task
}