From 014746c54cf557ac3fd46193c5cda8fcf7d0ea2e Mon Sep 17 00:00:00 2001 From: Walter Rafelsberger Date: Tue, 6 Aug 2024 17:01:09 +0200 Subject: [PATCH] fix double await --- .../log_rate_analysis/analysis_handlers/top_items_handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/aiops/server/routes/log_rate_analysis/analysis_handlers/top_items_handler.ts b/x-pack/plugins/aiops/server/routes/log_rate_analysis/analysis_handlers/top_items_handler.ts index e7379c6ffdb19..a59b46887b5ff 100644 --- a/x-pack/plugins/aiops/server/routes/log_rate_analysis/analysis_handlers/top_items_handler.ts +++ b/x-pack/plugins/aiops/server/routes/log_rate_analysis/analysis_handlers/top_items_handler.ts @@ -185,7 +185,7 @@ export const topItemsHandlerFactory = } else if (isTextFieldCandidates(payload)) { const { textFieldCandidates: fieldNames } = payload; - const topCategoriesForField = await await fetchTopCategories({ + const topCategoriesForField = await fetchTopCategories({ esClient, logger, emitError: responseStream.pushError,