Skip to content

Commit

Permalink
refactor: optimize list hooks for avoid unnecessary json marshal/unma…
Browse files Browse the repository at this point in the history
…rshal
  • Loading branch information
chengjoey committed Oct 29, 2024
1 parent db4af33 commit 4f92e07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/core/messenger/eventbox/webhook/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f92e07

Please sign in to comment.