diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-09-09 09:09:22 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-09-09 09:09:22 -0400 |
commit | e004ec08e94fa8f8e438784cb132195d0084e1ca (patch) | |
tree | e1a432b5cc1c9ac617bce7621ff90b0d9b064617 | |
parent | e21d8a7d350ea6003f2edac016a4cd8537e00ef0 (diff) | |
parent | 132590fab8c92fea1dc11faf6ffe3052c2350d91 (diff) | |
download | gitea-e004ec08e94fa8f8e438784cb132195d0084e1ca.tar.gz gitea-e004ec08e94fa8f8e438784cb132195d0084e1ca.zip |
Merge pull request #451 from compressed/hook_task_upd
update specific hook_task, not all
-rw-r--r-- | models/webhook.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/webhook.go b/models/webhook.go index 5acc83f592..6aac457b90 100644 --- a/models/webhook.go +++ b/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 } |