Skip to content

Commit 9228b4b

Browse files
committed
fix: elastic filter time adds unnecessary /d to intervals in Log Explorer
1 parent 792f98d commit 9228b4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/src/app/defined-charts/components/alert/chart-alert-daily-week/chart-alert-daily-week.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class ChartAlertDailyWeekComponent implements OnInit, OnDestroy {
4848
const queryParams = {};
4949
queryParams[ALERT_GLOBAL_FIELD] = 'ALERT';
5050
if (type !== 'today') {
51-
queryParams[ALERT_TIMESTAMP_FIELD] = ElasticOperatorsEnum.IS_BETWEEN + '->now-7d/d,now';
51+
queryParams[ALERT_TIMESTAMP_FIELD] = ElasticOperatorsEnum.IS_BETWEEN + '->now-7d,now';
5252
} else {
5353
queryParams[ALERT_TIMESTAMP_FIELD] = ElasticOperatorsEnum.IS_BETWEEN + '->now/d,now';
5454
}

frontend/src/app/shared/components/utm/filters/elastic-filter-time/elastic-filter-time.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class ElasticFilterTimeComponent implements OnInit, OnChanges, OnDestroy
126126
this.dateTo = 'now';
127127
this.dateFrom = common.label;
128128
if (!this.formatInstant) {
129-
const timeFrom = ElasticTimeEnum.NOW + '-' + common.last + common.time + '/d' ;
129+
const timeFrom = ElasticTimeEnum.NOW + '-' + common.last + common.time;
130130
const timeTo = ElasticTimeEnum.NOW;
131131
this.emitElasticDate(timeFrom, timeTo);
132132
} else {

0 commit comments

Comments
 (0)