Skip to content

Commit

Permalink
Allow the event log to get system actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Jul 20, 2023
1 parent 8b24cc6 commit 1613160
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion x-pack/plugins/actions/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,13 @@ export class ActionsPlugin implements Plugin<PluginSetupContract, PluginStartCon
return (objects?: SavedObjectsBulkGetObject[]) =>
objects
? Promise.all(
objects.map(async (objectItem) => await (await client).get({ id: objectItem.id }))
objects.map(
async (objectItem) =>
/**
* TODO: Change with getBulk
*/
await (await client).get({ id: objectItem.id, throwIfSystemAction: false })
)
)
: Promise.resolve([]);
});
Expand Down

0 comments on commit 1613160

Please sign in to comment.