Skip to content

Commit 4c7c494

Browse files
committed
Fix test
1 parent 6876c9b commit 4c7c494

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: routers/api/v1/admin/hooks.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a MIT-style
33
// license that can be found in the LICENSE file.
44

5-
package org
5+
package admin
66

77
import (
88
"net/http"
@@ -36,7 +36,7 @@ func ListHooks(ctx *context.APIContext) {
3636
// "200":
3737
// "$ref": "#/responses/HookList"
3838

39-
sysHooks, err := models.GetSystemWebhooks(utils.GetListOptions(ctx))
39+
sysHooks, err := models.GetSystemWebhooks()
4040
if err != nil {
4141
ctx.Error(http.StatusInternalServerError, "GetSystemWebhooks", err)
4242
return

Diff for: routers/api/v1/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ func Routes() *web.Route {
10321032
m.Combo("").Get(admin.ListHooks).
10331033
Post(bind(api.CreateHookOption{}), admin.CreateHook)
10341034
m.Combo("/{id}").Get(admin.GetHook).
1035-
Patch(bind(admin.EditHookOption{}), admin.EditHook).
1035+
Patch(bind(api.EditHookOption{}), admin.EditHook).
10361036
Delete(admin.DeleteHook)
10371037
})
10381038
}, reqToken(), reqSiteAdmin())

0 commit comments

Comments
 (0)