Skip to content

Commit

Permalink
Some fixes from backport (#89746)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
ymao1 and kibanamachine authored Feb 1, 2021
1 parent 688b918 commit 57453f1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const buildSortedEventsQuery = ({
...searchQuery.body,
search_after: [searchAfterSortId],
},
};
} as ESSearchRequest;
}
return searchQuery;
return searchQuery as ESSearchRequest;
};
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,17 @@ export function getAlertType(
{
bool: {
must_not: [
{ bool: { filter: [{ range: { [params.timeField]: { lte: timestamp } } }] } },
{
bool: {
filter: [
{
range: {
[params.timeField]: { lte: new Date(timestamp).toISOString() },
},
},
],
},
},
],
},
},
Expand Down

0 comments on commit 57453f1

Please sign in to comment.