mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Fix elastic/fleet-server access to agent policies (#122320)
This commit is contained in:
parent
d0d50bf9bd
commit
20785506a0
1 changed files with 2 additions and 2 deletions
|
@ -39,11 +39,11 @@ import type {
|
|||
import { defaultIngestErrorHandler } from '../../errors';
|
||||
import { incrementPackageName } from '../../services/package_policy';
|
||||
|
||||
export const getAgentPoliciesHandler: RequestHandler<
|
||||
export const getAgentPoliciesHandler: FleetRequestHandler<
|
||||
undefined,
|
||||
TypeOf<typeof GetAgentPoliciesRequestSchema.query>
|
||||
> = async (context, request, response) => {
|
||||
const soClient = context.core.savedObjects.client;
|
||||
const soClient = context.fleet.epm.internalSoClient;
|
||||
const esClient = context.core.elasticsearch.client.asInternalUser;
|
||||
const { full: withPackagePolicies = false, ...restOfQuery } = request.query;
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue