mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Search] Update connector also updates status (#165983)
## Summary Converting a connector from native to client now updates the connector status.
This commit is contained in:
parent
2ecd8b83fa
commit
9deae84801
1 changed files with 2 additions and 1 deletions
|
@ -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<Connector>({
|
||||
doc: {
|
||||
is_native: isNative,
|
||||
status: ConnectorStatus.CONFIGURED,
|
||||
},
|
||||
id: connectorId,
|
||||
index: CONNECTORS_INDEX,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue