Skip to content

Commit 660af5c

Browse files
committed
fixing types after merge with master
1 parent 9cfafac commit 660af5c

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

x-pack/plugins/ml/server/lib/ml_client/search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import Boom from 'boom';
7+
import Boom from '@hapi/boom';
88
import { IScopedClusterClient } from 'kibana/server';
99
import { RequestParams, ApiResponse } from '@elastic/elasticsearch';
1010

x-pack/plugins/ml/server/models/results_service/get_partition_fields_values.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import Boom from '@hapi/boom';
88
import { PARTITION_FIELDS } from '../../../common/constants/anomalies';
99
import { PartitionFieldsType } from '../../../common/types/anomalies';
10-
import { ML_RESULTS_INDEX_PATTERN } from '../../../common/constants/index_patterns';
1110
import { CriteriaField } from './results_service';
1211
import { FieldConfig, FieldsConfig } from '../../routes/schemas/results_service_schema';
1312
import { Job } from '../../../common/types/anomaly_detection_jobs';
@@ -220,10 +219,13 @@ export const getPartitionFieldsValuesFactory = (mlClient: MlClient) =>
220219
},
221220
};
222221

223-
const { body } = await mlClient.anomalySearch({
224-
size: 0,
225-
body: requestBody,
226-
}, [jobId]);
222+
const { body } = await mlClient.anomalySearch(
223+
{
224+
size: 0,
225+
body: requestBody,
226+
},
227+
[jobId]
228+
);
227229

228230
return PARTITION_FIELDS.reduce((acc, key) => {
229231
return {

x-pack/plugins/ml/server/saved_objects/checks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import Boom from 'boom';
7+
import Boom from '@hapi/boom';
88
import { IScopedClusterClient } from 'kibana/server';
99
import { SearchResponse } from 'elasticsearch';
1010
import type { JobObject, JobSavedObjectService } from './service';

0 commit comments

Comments
 (0)