From 5f57e342fca96564f861842e2e0e378497492db5 Mon Sep 17 00:00:00 2001 From: AdheipSingh Date: Mon, 11 Nov 2024 15:59:39 +0530 Subject: [PATCH] remove profile --- pkg/analytics/analytics.go | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/pkg/analytics/analytics.go b/pkg/analytics/analytics.go index 385c9e7..109075f 100644 --- a/pkg/analytics/analytics.go +++ b/pkg/analytics/analytics.go @@ -25,16 +25,15 @@ import ( ) type Event struct { - CLIVersion string `json:"cli_version"` - ULID string `json:"ulid"` - CommitHash string `json:"commit_hash"` - OSName string `json:"os_name"` - OSVersion string `json:"os_version"` - ReportCreatedAt string `json:"report_created_at"` - Command Command `json:"command"` - Profile config.Profile `json:"profile"` - Errors *string `json:"errors"` - ExecutionTimestamp string `json:"execution_timestamp"` + CLIVersion string `json:"cli_version"` + ULID string `json:"ulid"` + CommitHash string `json:"commit_hash"` + OSName string `json:"os_name"` + OSVersion string `json:"os_version"` + ReportCreatedAt string `json:"report_created_at"` + Command Command `json:"command"` + Errors *string `json:"errors"` + ExecutionTimestamp string `json:"execution_timestamp"` } // About struct @@ -195,8 +194,6 @@ func sendEvent(commandName string, arguments []string, errors *string, execution ExecutionTimestamp: executionTimestamp, } - event.Profile.Password = "" - // Marshal the event to JSON for sending eventJSON, err := json.Marshal(event) if err != nil {