mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
This commit is contained in:
@@ -242,6 +242,9 @@ func PutBatchSchedules(c *gin.Context) {
|
||||
// 添加 UserID
|
||||
s.UserId = services.GetCurrentUserId(c)
|
||||
|
||||
// 默认启用
|
||||
s.Enabled = true
|
||||
|
||||
// 添加定时任务
|
||||
if err := model.AddSchedule(s); err != nil {
|
||||
log.Errorf("add schedule error: " + err.Error())
|
||||
|
||||
Reference in New Issue
Block a user