aboutsummaryrefslogtreecommitdiff
path: root/routers/api/v1/repo_hooks.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/repo_hooks.go')
-rw-r--r--routers/api/v1/repo_hooks.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo_hooks.go b/routers/api/v1/repo_hooks.go
index eb1c4be4..68b48343 100644
--- a/routers/api/v1/repo_hooks.go
+++ b/routers/api/v1/repo_hooks.go
@@ -121,7 +121,7 @@ func CreateRepoHook(ctx *middleware.Context, form api.CreateHookOption) {
// PATCH /repos/:username/:reponame/hooks/:id
// https://developer.github.com/v3/repos/hooks/#edit-a-hook
func EditRepoHook(ctx *middleware.Context, form api.EditHookOption) {
- w, err := models.GetWebhookById(ctx.ParamsInt64(":id"))
+ w, err := models.GetWebhookByID(ctx.ParamsInt64(":id"))
if err != nil {
ctx.JSON(500, &base.ApiJsonErr{"GetWebhookById: " + err.Error(), base.DOC_URL})
return