From 4f92e07686a39d778e11688f23fd5f0228c32c23 Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 29 Oct 2024 11:32:47 +0800 Subject: [PATCH] refactor: optimize list hooks for avoid unnecessary json marshal/unmarshal --- internal/core/messenger/eventbox/webhook/http.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/core/messenger/eventbox/webhook/http.go b/internal/core/messenger/eventbox/webhook/http.go index 53b7c6f0cd0..67d31aca513 100644 --- a/internal/core/messenger/eventbox/webhook/http.go +++ b/internal/core/messenger/eventbox/webhook/http.go @@ -75,6 +75,7 @@ func (w *WebHookHTTP) ListHooks(ctx context.Context, req *pb.ListHooksRequest, v if location.Org == "" { return nil, fmt.Errorf("not provide org") } + r, err := w.impl.ListHooks(location) if err != nil { return nil, err