1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-24 13:09:23 -05:00

Merge pull request #451 from compressed/hook_task_upd

update specific hook_task, not all
This commit is contained in:
无闻 2014-09-09 09:09:22 -04:00
commit e004ec08e9

View file

@ -230,7 +230,7 @@ func CreateHookTask(t *HookTask) error {
// UpdateHookTask updates information of hook task. // UpdateHookTask updates information of hook task.
func UpdateHookTask(t *HookTask) error { func UpdateHookTask(t *HookTask) error {
_, err := x.AllCols().Update(t) _, err := x.Id(t.Id).AllCols().Update(t)
return err return err
} }