mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	update specific hook_task, not all
This commit is contained in:
		| @@ -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 | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user