From 132590fab8c92fea1dc11faf6ffe3052c2350d91 Mon Sep 17 00:00:00 2001 From: Christopher Brickley Date: Tue, 9 Sep 2014 08:37:34 -0400 Subject: update specific hook_task, not all --- models/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3