aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-09-09 09:09:22 -0400
committer无闻 <joe2010xtmf@163.com>2014-09-09 09:09:22 -0400
commite004ec08e94fa8f8e438784cb132195d0084e1ca (patch)
treee1a432b5cc1c9ac617bce7621ff90b0d9b064617
parente21d8a7d350ea6003f2edac016a4cd8537e00ef0 (diff)
parent132590fab8c92fea1dc11faf6ffe3052c2350d91 (diff)
downloadgitea-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.go2
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
}