From 1613160d54ad489324b5196eb0897b7f76c7d26c Mon Sep 17 00:00:00 2001 From: Christos Nasikas Date: Thu, 20 Jul 2023 17:56:35 +0300 Subject: [PATCH] Allow the event log to get system actions --- x-pack/plugins/actions/server/plugin.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/actions/server/plugin.ts b/x-pack/plugins/actions/server/plugin.ts index 85233356ffda8..bb8fcc3bbea5d 100644 --- a/x-pack/plugins/actions/server/plugin.ts +++ b/x-pack/plugins/actions/server/plugin.ts @@ -491,7 +491,13 @@ export class ActionsPlugin implements Plugin 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([]); });