Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: John Schulz <john.schulz@elastic.co>
  • Loading branch information
nchaulet and John Schulz committed Dec 1, 2020
1 parent 5129ba6 commit 26aae04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/fleet/server/services/api_keys/security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function createAPIKey(
}

try {
const key = await security.authc.createAPIKey(request as KibanaRequest, {
const key = await security.authc.createAPIKey(request, {
name,
role_descriptors: roleDescriptors,
});
Expand Down Expand Up @@ -87,7 +87,7 @@ export async function invalidateAPIKey(soClient: SavedObjectsClientContract, id:
}

try {
const res = await security.authc.invalidateAPIKey(request as KibanaRequest, {
const res = await security.authc.invalidateAPIKey(request, {
id,
});

Expand Down

0 comments on commit 26aae04

Please sign in to comment.