diff options
author | Christopher Brickley <brickley@gmail.com> | 2014-09-09 08:37:34 -0400 |
---|---|---|
committer | Christopher Brickley <brickley@gmail.com> | 2014-09-09 08:37:34 -0400 |
commit | 132590fab8c92fea1dc11faf6ffe3052c2350d91 (patch) | |
tree | e1a432b5cc1c9ac617bce7621ff90b0d9b064617 | |
parent | e21d8a7d350ea6003f2edac016a4cd8537e00ef0 (diff) | |
download | gitea-132590fab8c92fea1dc11faf6ffe3052c2350d91.tar.gz gitea-132590fab8c92fea1dc11faf6ffe3052c2350d91.zip |
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 } |