Skip to content

Commit

Permalink
Fix types, fix field names
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-huang committed Apr 22, 2020
1 parent a151754 commit d8f9bc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { useRequest, sendRequest } from './use_request';
import { useRequest } from './use_request';
import { dataStreamRouteService } from '../../services';
import { GetDataStreamsResponse } from '../../types';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ export const getListHandler: RequestHandler = async (context, request, response)
must: [
{
exists: {
field: 'fields.stream.namespace',
field: 'stream.namespace',
},
},
{
exists: {
field: 'fields.stream.dataset',
field: 'stream.dataset',
},
},
],
Expand All @@ -57,19 +57,19 @@ export const getListHandler: RequestHandler = async (context, request, response)
aggs: {
dataset: {
terms: {
field: 'fields.stream.dataset',
field: 'stream.dataset',
size: 1,
},
},
namespace: {
terms: {
field: 'fields.stream.namespace',
field: 'stream.namespace',
size: 1,
},
},
type: {
terms: {
field: 'fields.stream.type',
field: 'stream.type',
size: 1,
},
},
Expand Down

0 comments on commit d8f9bc2

Please sign in to comment.