Skip to content

Commit

Permalink
Using AGENT_ACTION_SAVED_OBJECT_TYPE everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
kobelb committed Aug 26, 2020
1 parent 225bb15 commit 0ee4f45
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<AgentActionSOAttributes>({
type: AGENT_ACTION_SAVED_OBJECT_TYPE,
Expand Down

0 comments on commit 0ee4f45

Please sign in to comment.