0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-29 23:06:19 +01:00

update specific hook_task, not all

This commit is contained in:
Christopher Brickley 2014-09-09 08:37:34 -04:00
parent e21d8a7d35
commit 132590fab8

View 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
}