mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-30 06:27:42 +01:00
update specific hook_task, not all
This commit is contained in:
parent
e21d8a7d35
commit
132590fab8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue