Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
Browse files Browse the repository at this point in the history
…-ref HEAD~1..HEAD --fix'
  • Loading branch information
kibanamachine committed Sep 9, 2022
1 parent 1d32de9 commit cbb46d3
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ export const getBrowserFieldsByFeatureId = (router: IRouter<RacRequestHandlerCon
const alertsClient = await racContext.getAlertsClient();
const { featureIds = [] } = request.query;


const indices = await alertsClient.getAuthorizedAlertsIndices(Array.isArray(featureIds) ? featureIds : [featureIds]);
const o11yIndices = indices?.filter((index) => index.startsWith('.alerts-observability')) ?? [];
const indices = await alertsClient.getAuthorizedAlertsIndices(
Array.isArray(featureIds) ? featureIds : [featureIds]
);
const o11yIndices =
indices?.filter((index) => index.startsWith('.alerts-observability')) ?? [];
if (o11yIndices.length === 0) {
return response.notFound({
body: {
Expand Down

0 comments on commit cbb46d3

Please sign in to comment.