aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Brickley <brickley@gmail.com>2014-09-09 08:37:34 -0400
committerChristopher Brickley <brickley@gmail.com>2014-09-09 08:37:34 -0400
commit132590fab8c92fea1dc11faf6ffe3052c2350d91 (patch)
treee1a432b5cc1c9ac617bce7621ff90b0d9b064617
parente21d8a7d350ea6003f2edac016a4cd8537e00ef0 (diff)
downloadgitea-132590fab8c92fea1dc11faf6ffe3052c2350d91.tar.gz
gitea-132590fab8c92fea1dc11faf6ffe3052c2350d91.zip
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
}