From 6f8b78bd97edccac2b81040e7671936e8b388846 Mon Sep 17 00:00:00 2001 From: Ankit Nayan Date: Thu, 16 Dec 2021 13:31:56 +0530 Subject: [PATCH] chore: small change in api --- pkg/query-service/app/http_handler.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/query-service/app/http_handler.go b/pkg/query-service/app/http_handler.go index 116be7b220..0f4438739a 100644 --- a/pkg/query-service/app/http_handler.go +++ b/pkg/query-service/app/http_handler.go @@ -845,13 +845,13 @@ func (aH *APIHandler) getServices(w http.ResponseWriter, r *http.Request) { if aH.handleError(w, err, http.StatusBadRequest) { return } - if len(*result) != 4 { - (*aH.pc).Enqueue(posthog.Capture{ - DistinctId: distinctId, - Event: "Different Number of Services", - Properties: posthog.NewProperties().Set("number", len(*result)), - }) - } + // if len(*result) != 4 { + (*aH.pc).Enqueue(posthog.Capture{ + DistinctId: distinctId, + Event: "Different Number of Services", + Properties: posthog.NewProperties().Set("number", len(*result)), + }) + // } aH.writeJSON(w, r, result) }