summaryrefslogtreecommitdiffstats
path: root/models/webhook.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-08-31 15:11:55 +0800
committerUnknwon <joe2010xtmf@163.com>2014-08-31 15:11:55 +0800
commit7e36bf448db915250eb831a00b122fc1092df630 (patch)
treef3e590a542497efd1908109f752e7a03a8abeca4 /models/webhook.go
parentd78008b546b74d528629b79a7fee00b20f3437e2 (diff)
parent03c6a395aa0d32c99e8264d18a3b5228656478df (diff)
downloadgitea-7e36bf448db915250eb831a00b122fc1092df630.tar.gz
gitea-7e36bf448db915250eb831a00b122fc1092df630.zip
Merge branch 'master' of github.com:gogits/gogs into dev
Conflicts: dockerfiles/README.md
Diffstat (limited to 'models/webhook.go')
-rw-r--r--models/webhook.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/webhook.go b/models/webhook.go
index 17a41e66c6..ced7936646 100644
--- a/models/webhook.go
+++ b/models/webhook.go
@@ -99,7 +99,7 @@ func GetWebhooksByRepoId(repoId int64) (ws []*Webhook, err error) {
// UpdateWebhook updates information of webhook.
func UpdateWebhook(w *Webhook) error {
- _, err := x.AllCols().Update(w)
+ _, err := x.Id(w.Id).AllCols().Update(w)
return err
}