From 4596a0c7045e48d20cfe1e0dc9e0b3f0d4b39fb9 Mon Sep 17 00:00:00 2001 From: Sander Philipse Date: Thu, 7 Sep 2023 16:47:31 +0200 Subject: [PATCH] [Search] Update connector also updates status --- packages/kbn-search-connectors/lib/update_native.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/kbn-search-connectors/lib/update_native.ts b/packages/kbn-search-connectors/lib/update_native.ts index dff5042961088..73af04e75aa8b 100644 --- a/packages/kbn-search-connectors/lib/update_native.ts +++ b/packages/kbn-search-connectors/lib/update_native.ts @@ -9,7 +9,7 @@ import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { CONNECTORS_INDEX } from '..'; -import { Connector } from '../types/connectors'; +import { Connector, ConnectorStatus } from '../types/connectors'; export const putUpdateNative = async ( client: ElasticsearchClient, @@ -19,6 +19,7 @@ export const putUpdateNative = async ( const result = await client.update({ doc: { is_native: isNative, + status: ConnectorStatus.CONFIGURED, }, id: connectorId, index: CONNECTORS_INDEX,