Commit d9fec5e8 authored by 陈子龙's avatar 陈子龙

自动化运维 立即执行 fix

parent f12500f6
......@@ -154,7 +154,7 @@ func AddExecHistory(req request.AddExecHistory) (id int, err error) {
err = resp.DbConnectError.WithError(err)
return
}
count, err := db.Table("task_history").Where("id = ?", req.TaskId).Count(&entity.TaskHistory{})
count, err := db.Table("task_history").Where("task_id = ?", req.TaskId).Count(&entity.TaskHistory{})
if err != nil {
err = resp.DbSelectError.WithError(err)
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment