Skip to content

Commit

Permalink
update to latest endpoint schema
Browse files Browse the repository at this point in the history
  • Loading branch information
pzl committed Jan 30, 2020
1 parent 2de4e1e commit 7ecc524
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ describe('query builder', () => {
});
expect(query).toEqual({
body: {
query: { match: { machine_id: mockID } },
sort: [{ created_at: { order: 'desc' } }],
query: { match: { 'host.id.keyword': mockID } },
sort: [{ 'event.created': { order: 'desc' } }],
size: 1,
},
index: 'endpoint-agent*',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ export const kibanaRequestToEndpointFetchQuery = (
body: {
query: {
match: {
machine_id: request.params.id,
'host.id.keyword': request.params.id,
},
},
sort: [
{
created_at: {
'event.created': {
order: 'desc',
},
},
Expand Down

0 comments on commit 7ecc524

Please sign in to comment.