From 50d99a665a547ed356ead0ca5f987c8f85b2c317 Mon Sep 17 00:00:00 2001 From: Joel Worrall Date: Tue, 28 Jan 2020 20:58:45 -0800 Subject: [PATCH] fix(timeRangeToNrql): handling begin_time and end_time. --- src/utils/timeRangeToNrql/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/timeRangeToNrql/index.js b/src/utils/timeRangeToNrql/index.js index 26e2877..fd94bb6 100644 --- a/src/utils/timeRangeToNrql/index.js +++ b/src/utils/timeRangeToNrql/index.js @@ -9,6 +9,8 @@ export const timeRangeToNrql = function({ timeRange = false }) { if (timeRange.beginTime && timeRange.endTime) { return `SINCE ${timeRange.beginTime} UNTIL ${timeRange.endTime}`; + } else if (timeRange.begin_time && timeRange.end_time) { + return `SINCE ${timeRange.begin_time} UNTIL ${timeRange.end_time}`; } else if (timeRange.duration <= HOUR) { return `SINCE ${timeRange.duration / MINUTE} MINUTES AGO`; } else if (timeRange.duration <= DAY) {