From: Christopher Brickley Date: Tue, 9 Sep 2014 12:37:34 +0000 (-0400) Subject: update specific hook_task, not all X-Git-Tag: v0.9.99~1821^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=132590fab8c92fea1dc11faf6ffe3052c2350d91;p=gitea.git update specific hook_task, not all --- 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 }