aboutsummaryrefslogtreecommitdiff
path: root/routers/api/v1/repo/hook.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-22 22:55:28 -0500
committerUnknwon <u@gogs.io>2017-02-22 22:55:28 -0500
commit5ea0592f61f85a8a3a63326661dd31da4dd12369 (patch)
treede97437a95cddb09e265772199a1366c4456911b /routers/api/v1/repo/hook.go
parent054e97d6143b1ee86b4cd2d34e3b3da9cfe0df9a (diff)
webhook: fix organizational webhook last delivery status cannot be updated
Diffstat (limited to 'routers/api/v1/repo/hook.go')
-rw-r--r--routers/api/v1/repo/hook.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/hook.go b/routers/api/v1/repo/hook.go
index fa66fe47..466d3625 100644
--- a/routers/api/v1/repo/hook.go
+++ b/routers/api/v1/repo/hook.go
@@ -104,7 +104,7 @@ func EditHook(ctx *context.APIContext, form api.EditHookOption) {
if models.IsErrWebhookNotExist(err) {
ctx.Status(404)
} else {
- ctx.Error(500, "GetWebhookByID", err)
+ ctx.Error(500, "GetWebhookOfRepoByID", err)
}
return
}