]> source.dussan.org Git - gitea.git/commitdiff
update specific hook_task, not all
authorChristopher Brickley <brickley@gmail.com>
Tue, 9 Sep 2014 12:37:34 +0000 (08:37 -0400)
committerChristopher Brickley <brickley@gmail.com>
Tue, 9 Sep 2014 12:37:34 +0000 (08:37 -0400)
models/webhook.go

index 5acc83f59279c14b043305b32580cd302eaedfe6..6aac457b90c1ad1e54f87954c2cc58a4d8f1ee10 100644 (file)
@@ -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
 }