From 9b1c8a4109cdbc5181fa625982e8e739253e690b Mon Sep 17 00:00:00 2001 From: surajmn1 Date: Thu, 29 Sep 2022 11:54:16 +0530 Subject: [PATCH] update hukz url to display space specific webhooks --- server/service/core/action/webhook/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/service/core/action/webhook/list.go b/server/service/core/action/webhook/list.go index ee1b3602d..102bf74eb 100644 --- a/server/service/core/action/webhook/list.go +++ b/server/service/core/action/webhook/list.go @@ -47,7 +47,7 @@ func list(w http.ResponseWriter, r *http.Request) { return } - hukzURL := viper.GetString("hukz_url") + "/webhooks?tag=app:dega&tag=space:" + fmt.Sprint(sID) + "&limit=" + r.URL.Query().Get("limit") + "&page=" + r.URL.Query().Get("page") + hukzURL := viper.GetString("hukz_url") + "/webhooks/space/" + fmt.Sprint(sID) + "/?tag=app:dega&tag=space:" + fmt.Sprint(sID) + "&limit=" + r.URL.Query().Get("limit") + "&page=" + r.URL.Query().Get("page") resp, err := requestx.Request("GET", hukzURL, nil, map[string]string{ "X-User": fmt.Sprint(uID),