aboutsummaryrefslogtreecommitdiff
path: root/routers/org/setting.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-12-22 19:58:30 -0500
committerUnknwon <u@gogs.io>2016-12-22 19:58:30 -0500
commit03f7f3ee67f9b4d828c2dbc938cbf9648bf53377 (patch)
tree9c3f9c4d91eec0df22a8f6fdbe703ada94efcaad /routers/org/setting.go
parent6383bf748072279a101bf5ecdc0c56a0338f3046 (diff)
Some code renaming
Diffstat (limited to 'routers/org/setting.go')
-rw-r--r--routers/org/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/org/setting.go b/routers/org/setting.go
index 14681e4c..373e0526 100644
--- a/routers/org/setting.go
+++ b/routers/org/setting.go
@@ -151,7 +151,7 @@ func Webhooks(ctx *context.Context) {
}
func DeleteWebhook(ctx *context.Context) {
- if err := models.DeleteWebhookByOrgID(ctx.Org.Organization.ID, ctx.QueryInt64("id")); err != nil {
+ if err := models.DeleteWebhookOfOrgByID(ctx.Org.Organization.ID, ctx.QueryInt64("id")); err != nil {
ctx.Flash.Error("DeleteWebhookByOrgID: " + err.Error())
} else {
ctx.Flash.Success(ctx.Tr("repo.settings.webhook_deletion_success"))