Skip to content

Commit

Permalink
Fix casing.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisscott committed Mar 15, 2021
1 parent 961768a commit 26e920b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cli/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ auth0 logs tail [client-id]
return cmd
}

func getLatestLogs(cli *cli, n int, ClientID string) ([]*management.Log, error) {
func getLatestLogs(cli *cli, n int, clientID string) ([]*management.Log, error) {
page := 0
perPage := n

Expand All @@ -192,8 +192,8 @@ func getLatestLogs(cli *cli, n int, ClientID string) ([]*management.Log, error)
management.Parameter("page", fmt.Sprintf("%d", page)),
management.Parameter("per_page", fmt.Sprintf("%d", perPage))}

if ClientID != "" {
queryParams = append(queryParams, management.Query(fmt.Sprintf(`client_id:"%s"`, ClientID)))
if clientID != "" {
queryParams = append(queryParams, management.Query(fmt.Sprintf(`client_id:"%s"`, clientID)))
}

return cli.api.Log.List(queryParams...)
Expand Down

0 comments on commit 26e920b

Please sign in to comment.