Skip to content

Commit

Permalink
fix errors after master merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Jun 8, 2021
1 parent a87d4dd commit 7304b6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
* Side Public License, v 1.
*/

import { IndexMapping } from '../../../mappings';
import {
isRootLevelAttribute,
rewriteRootLevelAttribute,
isObjectTypeAttribute,
rewriteObjectTypeAttribute,
} from './validation_utils';

const mockMappings: IndexMapping = {
const mockMappings = {
properties: {
updated_at: {
type: 'date',
Expand Down
6 changes: 4 additions & 2 deletions x-pack/plugins/cases/server/services/cases/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
SavedObjectsFindResult,
} from 'kibana/server';

import { AggregationContainer } from '@elastic/elasticsearch/api/types';
import type { estypes } from '@elastic/elasticsearch';
import { nodeBuilder, KueryNode } from '../../../../../../src/plugins/data/common';

import { SecurityPluginSetup } from '../../../../security/server';
Expand Down Expand Up @@ -218,7 +218,9 @@ export class CasesService {
private readonly authentication?: SecurityPluginSetup['authc']
) {}

private buildCaseIdsAggs = (size: number = 100): Record<string, AggregationContainer> => ({
private buildCaseIdsAggs = (
size: number = 100
): Record<string, estypes.AggregationsAggregationContainer> => ({
references: {
nested: {
path: `${CASE_COMMENT_SAVED_OBJECT}.references`,
Expand Down

0 comments on commit 7304b6c

Please sign in to comment.