mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
parent
479223b0a1
commit
4aa727560a
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import moment from 'moment';
|
||||
import { APICaller } from 'kibana/server';
|
||||
import { CursorPagination } from '../adapter_types';
|
||||
import { INDEX_NAMES } from '../../../../../common/constants';
|
||||
|
@ -97,7 +98,7 @@ export class QueryContext {
|
|||
// behavior.
|
||||
|
||||
const tsEnd = parseRelativeDate(this.dateRangeEnd, { roundUp: true })!;
|
||||
const tsStart = tsEnd.subtract(5, 'minutes');
|
||||
const tsStart = moment(tsEnd).subtract(5, 'minutes');
|
||||
|
||||
return {
|
||||
range: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue