fix: OSS telemetry for the number of services (#7908)

Fixes the OSS telemetry for sending the `Number of services` events.
This commit is contained in:
Nageshbansal 2025-05-13 16:18:59 +05:30 committed by GitHub
parent ad392e81ff
commit dfca5b13c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1711,7 +1711,7 @@ func (aH *APIHandler) getServices(w http.ResponseWriter, r *http.Request) {
"number": len(*result),
}
claims, errv2 := authtypes.ClaimsFromContext(r.Context())
if errv2 != nil {
if errv2 == nil {
telemetry.GetInstance().SendEvent(telemetry.TELEMETRY_EVENT_NUMBER_OF_SERVICES, data, claims.Email, true, false)
}