Этот коммит содержится в:
Conor Macpherson
2022-12-20 09:18:20 -05:00
родитель e4593998bc
Коммит 9c4ce9016f

Просмотреть файл

@@ -403,16 +403,15 @@ func requestTrueUpReview(c *Context, w http.ResponseWriter, r *http.Request) {
// Convert true up review profile struct to map
var telemetryProperties map[string]interface{}
reviewProfileJson, err := json.Marshal(reviewProfile)
json.Unmarshal(reviewProfileJson, &telemetryProperties)
// Send telemetry data.
telemetryService := c.App.Srv().GetTelemetryService()
telemetryService.SendTelemetry(model.TrueUpReviewTelemetryName, telemetryProperties)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
// Send telemetry data.
json.Unmarshal(reviewProfileJson, &telemetryProperties)
telemetryService := c.App.Srv().GetTelemetryService()
telemetryService.SendTelemetry(model.TrueUpReviewTelemetryName, telemetryProperties)
ReturnStatusOK(w)
}