From 03f7f3ee67f9b4d828c2dbc938cbf9648bf53377 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 22 Dec 2016 19:58:30 -0500 Subject: Some code renaming --- routers/api/v1/repo/hook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/api/v1/repo/hook.go') 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 } -- cgit v1.2.3