Skip to content

Commit 69083f1

Browse files
committed
fix types
1 parent 80967ad commit 69083f1

File tree

2 files changed

+27
-23
lines changed

2 files changed

+27
-23
lines changed

x-pack/plugins/security_solution/server/lib/detection_engine/routes/index/create_index_route.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -180,26 +180,26 @@ const addFieldAliasesToIndices = async ({
180180
}
181181
};
182182

183-
const addIndexAliases = async ({
184-
esClient,
185-
index,
186-
aadIndexAliasName,
187-
}: {
188-
esClient: ElasticsearchClient;
189-
index: string;
190-
aadIndexAliasName: string;
191-
}) => {
192-
const { body: indices } = await esClient.indices.getAlias({ name: index });
193-
const aliasActions = {
194-
actions: Object.keys(indices).map((concreteIndexName) => {
195-
return {
196-
add: {
197-
index: concreteIndexName,
198-
alias: aadIndexAliasName,
199-
is_write_index: false,
200-
},
201-
};
202-
}),
203-
};
204-
await esClient.indices.updateAliases({ body: aliasActions });
205-
};
183+
// const addIndexAliases = async ({
184+
// esClient,
185+
// index,
186+
// aadIndexAliasName,
187+
// }: {
188+
// esClient: ElasticsearchClient;
189+
// index: string;
190+
// aadIndexAliasName: string;
191+
// }) => {
192+
// const { body: indices } = await esClient.indices.getAlias({ name: index });
193+
// const aliasActions = {
194+
// actions: Object.keys(indices).map((concreteIndexName) => {
195+
// return {
196+
// add: {
197+
// index: concreteIndexName,
198+
// alias: aadIndexAliasName,
199+
// is_write_index: false,
200+
// },
201+
// };
202+
// }),
203+
// };
204+
// await esClient.indices.updateAliases({ body: aliasActions });
205+
// };

yarn.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2747,6 +2747,10 @@
27472747
version "0.0.0"
27482748
uid ""
27492749

2750+
"@kbn/alerts@link:bazel-bin/packages/kbn-alerts":
2751+
version "0.0.0"
2752+
uid ""
2753+
27502754
"@kbn/analytics@link:bazel-bin/packages/kbn-analytics":
27512755
version "0.0.0"
27522756
uid ""

0 commit comments

Comments
 (0)