Browse Source

update specific hook_task, not all

pull/451/head
Christopher Brickley 10 years ago
parent
commit
132590fab8
  1. 2
      models/webhook.go

2
models/webhook.go

@ -230,7 +230,7 @@ func CreateHookTask(t *HookTask) error {
// UpdateHookTask updates information of hook task.
func UpdateHookTask(t *HookTask) error {
_, err := x.AllCols().Update(t)
_, err := x.Id(t.Id).AllCols().Update(t)
return err
}

Loading…
Cancel
Save