Skip to content

Commit

Permalink
remove profile
Browse files Browse the repository at this point in the history
  • Loading branch information
AdheipSingh committed Nov 11, 2024
1 parent 1eb2d4d commit 5f57e34
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions pkg/analytics/analytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 5f57e34

Please sign in to comment.