mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -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.
|
* you may not use this file except in compliance with the Elastic License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import moment from 'moment';
|
||||||
import { APICaller } from 'kibana/server';
|
import { APICaller } from 'kibana/server';
|
||||||
import { CursorPagination } from '../adapter_types';
|
import { CursorPagination } from '../adapter_types';
|
||||||
import { INDEX_NAMES } from '../../../../../common/constants';
|
import { INDEX_NAMES } from '../../../../../common/constants';
|
||||||
|
@ -97,7 +98,7 @@ export class QueryContext {
|
||||||
// behavior.
|
// behavior.
|
||||||
|
|
||||||
const tsEnd = parseRelativeDate(this.dateRangeEnd, { roundUp: true })!;
|
const tsEnd = parseRelativeDate(this.dateRangeEnd, { roundUp: true })!;
|
||||||
const tsStart = tsEnd.subtract(5, 'minutes');
|
const tsStart = moment(tsEnd).subtract(5, 'minutes');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
range: {
|
range: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue