aboutsummaryrefslogtreecommitdiff
path: root/routers/api/v1/repo/hook.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/api/v1/repo/hook.go
parent6383bf748072279a101bf5ecdc0c56a0338f3046 (diff)
Some code renaming
Diffstat (limited to 'routers/api/v1/repo/hook.go')
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/hook.go b/routers/api/v1/repo/hook.go
index 3b36055d..9857d2eb 100644
--- a/routers/api/v1/repo/hook.go
+++ b/routers/api/v1/repo/hook.go
@@ -166,7 +166,7 @@ func EditHook(ctx *context.APIContext, form api.EditHookOption) {
}
func DeleteHook(ctx *context.APIContext) {
- if err := models.DeleteWebhookByRepoID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id")); err != nil {
+ if err := models.DeleteWebhookOfRepoByID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id")); err != nil {
ctx.Error(500, "DeleteWebhookByRepoID", err)
return
}