Skip to content

Commit

Permalink
Send owner: true on API call to invalid API keys. (#381)
Browse files Browse the repository at this point in the history
(cherry picked from commit ce31018)
  • Loading branch information
blakerouse authored and mergify-bot committed May 20, 2021
1 parent 7701f2f commit 67f441a
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 67f441a

Please sign in to comment.