Skip to content

Commit

Permalink
Send owner: true on API call to invalid API keys. (#381) (#383)
Browse files Browse the repository at this point in the history
(cherry picked from commit ce31018)

Co-authored-by: Blake Rouse <[email protected]>
  • Loading branch information
mergify[bot] and blakerouse authored May 20, 2021
1 parent f7e5965 commit 6cd91d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/pkg/apikey/invalidate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ import (
func Invalidate(ctx context.Context, client *elasticsearch.Client, ids ...string) error {

payload := struct {
IDs []string `json:"ids,omitempty"`
IDs []string `json:"ids,omitempty"`
Owner bool `json:"owner"`
}{
ids,
true,
}

body, err := json.Marshal(&payload)
Expand Down

0 comments on commit 6cd91d7

Please sign in to comment.