From f0ecbc4704cd82dc9fdf5bd93b5b309933d8cd4e Mon Sep 17 00:00:00 2001 From: John Schulz Date: Tue, 3 Nov 2020 15:42:13 -0500 Subject: [PATCH] Update install.ts Use new `dataTypes` const which replaced `DataType` enum --- .../server/services/epm/kibana/index_pattern/install.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/ingest_manager/server/services/epm/kibana/index_pattern/install.ts b/x-pack/plugins/ingest_manager/server/services/epm/kibana/index_pattern/install.ts index 5f25305bfb8ab..beca73838c397 100644 --- a/x-pack/plugins/ingest_manager/server/services/epm/kibana/index_pattern/install.ts +++ b/x-pack/plugins/ingest_manager/server/services/epm/kibana/index_pattern/install.ts @@ -77,7 +77,7 @@ export interface IndexPatternField { readFromDocValues: boolean; } -export const indexPatternTypes = [DataType.logs, DataType.metrics]; +const indexPatternTypes = Object.values(dataTypes); // TODO: use a function overload and make pkgName and pkgVersion required for install/update // and not for an update removal. or separate out the functions