From dafca57352ea647624e921af2a957a62fe82e507 Mon Sep 17 00:00:00 2001 From: criamico Date: Mon, 19 Aug 2024 10:24:16 +0200 Subject: [PATCH] Fix linter --- .../plugins/fleet/server/tasks/unenroll_inactive_agents_task.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/fleet/server/tasks/unenroll_inactive_agents_task.ts b/x-pack/plugins/fleet/server/tasks/unenroll_inactive_agents_task.ts index 894ea4b88d4c1..d56c10cc61a20 100644 --- a/x-pack/plugins/fleet/server/tasks/unenroll_inactive_agents_task.ts +++ b/x-pack/plugins/fleet/server/tasks/unenroll_inactive_agents_task.ts @@ -118,7 +118,7 @@ export class UnenrollInactiveAgentsTask { const policiesKuery = `${AGENT_POLICY_SAVED_OBJECT_TYPE}.is_managed: false AND ${AGENT_POLICY_SAVED_OBJECT_TYPE}.unenroll_timeout > 0`; let agentCounter = 0; - const agentPolicyFetcher = agentPolicyService.fetchAllAgentPolicies(soClient, { + const agentPolicyFetcher = await agentPolicyService.fetchAllAgentPolicies(soClient, { kuery: policiesKuery, perPage: POLICIES_BATCHSIZE, });