Skip to content

Commit 0ee4f45

Browse files
committed
Using AGENT_ACTION_SAVED_OBJECT_TYPE everywhere
1 parent 225bb15 commit 0ee4f45

File tree

1 file changed

+5
-1
lines changed
  • x-pack/plugins/ingest_manager/server/services/agents

1 file changed

+5
-1
lines changed

x-pack/plugins/ingest_manager/server/services/agents/actions.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ export async function getAgentActionsForCheckin(
3939
'*'
4040
)
4141
),
42-
nodeTypes.function.buildNode('is', 'fleet-agent-actions.attributes.agent_id', agentId),
42+
nodeTypes.function.buildNode(
43+
'is',
44+
`${AGENT_ACTION_SAVED_OBJECT_TYPE}.attributes.agent_id`,
45+
agentId
46+
),
4347
]);
4448
const res = await soClient.find<AgentActionSOAttributes>({
4549
type: AGENT_ACTION_SAVED_OBJECT_TYPE,

0 commit comments

Comments
 (0)