chore: small change in api

This commit is contained in:
Ankit Nayan 2021-12-16 13:31:56 +05:30
parent c4fa86bc95
commit 6f8b78bd97

View File

@ -845,13 +845,13 @@ func (aH *APIHandler) getServices(w http.ResponseWriter, r *http.Request) {
if aH.handleError(w, err, http.StatusBadRequest) { if aH.handleError(w, err, http.StatusBadRequest) {
return return
} }
if len(*result) != 4 { // if len(*result) != 4 {
(*aH.pc).Enqueue(posthog.Capture{ (*aH.pc).Enqueue(posthog.Capture{
DistinctId: distinctId, DistinctId: distinctId,
Event: "Different Number of Services", Event: "Different Number of Services",
Properties: posthog.NewProperties().Set("number", len(*result)), Properties: posthog.NewProperties().Set("number", len(*result)),
}) })
} // }
aH.writeJSON(w, r, result) aH.writeJSON(w, r, result)
} }