diff --git a/internal/core/messenger/eventbox/webhook/http.go b/internal/core/messenger/eventbox/webhook/http.go index 53b7c6f0cd0c..cb44d3792f23 100644 --- a/internal/core/messenger/eventbox/webhook/http.go +++ b/internal/core/messenger/eventbox/webhook/http.go @@ -72,9 +72,11 @@ func (w *WebHookHTTP) ListHooks(ctx context.Context, req *pb.ListHooksRequest, v if err != nil { return nil, err } + if location.Org == "" { return nil, fmt.Errorf("not provide org") } + r, err := w.impl.ListHooks(location) if err != nil { return nil, err