From 0ee4f45264edc5f5e05e6ddcc2dc262e3d41fcae Mon Sep 17 00:00:00 2001 From: kobelb Date: Wed, 26 Aug 2020 11:55:35 -0700 Subject: [PATCH] Using AGENT_ACTION_SAVED_OBJECT_TYPE everywhere --- .../ingest_manager/server/services/agents/actions.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/ingest_manager/server/services/agents/actions.ts b/x-pack/plugins/ingest_manager/server/services/agents/actions.ts index 0df20295356197..cd0dd921312306 100644 --- a/x-pack/plugins/ingest_manager/server/services/agents/actions.ts +++ b/x-pack/plugins/ingest_manager/server/services/agents/actions.ts @@ -39,7 +39,11 @@ export async function getAgentActionsForCheckin( '*' ) ), - nodeTypes.function.buildNode('is', 'fleet-agent-actions.attributes.agent_id', agentId), + nodeTypes.function.buildNode( + 'is', + `${AGENT_ACTION_SAVED_OBJECT_TYPE}.attributes.agent_id`, + agentId + ), ]); const res = await soClient.find({ type: AGENT_ACTION_SAVED_OBJECT_TYPE,