Skip to content

Commit

Permalink
rename parsedFilters to appliedFilters
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaumaus committed Jun 27, 2023
1 parent fd3e5d8 commit b9e9fb2
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions apps/production/src/analytics/analytics.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export class AnalyticsController {
}

this.analyticsService.validateTimebucket(timeBucket)
const [filtersQuery, filtersParams, parsedFilters] =
const [filtersQuery, filtersParams, appliedFilters] =
this.analyticsService.getFiltersQuery(
filters,
isCaptcha ? DataType.CAPTCHA : DataType.ANALYTICS,
Expand Down Expand Up @@ -359,14 +359,14 @@ export class AnalyticsController {
paramsData,
safeTimezone,
customEVFilterApplied,
parsedFilters,
appliedFilters,
)
}

if (isCaptcha) {
return {
...result,
appliedFilters: parsedFilters,
appliedFilters,
}
}

Expand All @@ -378,7 +378,7 @@ export class AnalyticsController {
return {
...result,
customs,
appliedFilters: parsedFilters,
appliedFilters,
}
}

Expand Down Expand Up @@ -424,7 +424,7 @@ export class AnalyticsController {
}

this.analyticsService.validateTimebucket(timeBucket)
const [filtersQuery, filtersParams, parsedFilters] =
const [filtersQuery, filtersParams, appliedFilters] =
this.analyticsService.getFiltersQuery(filters, DataType.ANALYTICS)

const safeTimezone = this.analyticsService.getSafeTimezone(timezone)
Expand Down Expand Up @@ -473,7 +473,7 @@ export class AnalyticsController {

return {
...result,
appliedFilters: parsedFilters,
appliedFilters,
}
}

Expand All @@ -500,7 +500,7 @@ export class AnalyticsController {
}

this.analyticsService.validateTimebucket(timeBucket)
const [filtersQuery, filtersParams, parsedFilters] =
const [filtersQuery, filtersParams, appliedFilters] =
this.analyticsService.getFiltersQuery(filters, DataType.PERFORMANCE)

const safeTimezone = this.analyticsService.getSafeTimezone(timezone)
Expand Down Expand Up @@ -540,7 +540,7 @@ export class AnalyticsController {

return {
...result,
appliedFilters: parsedFilters,
appliedFilters,
}
}

Expand All @@ -567,7 +567,7 @@ export class AnalyticsController {
}

this.analyticsService.validateTimebucket(timeBucket)
const [filtersQuery, filtersParams, parsedFilters] =
const [filtersQuery, filtersParams, appliedFilters] =
this.analyticsService.getFiltersQuery(filters, DataType.PERFORMANCE)

const safeTimezone = this.analyticsService.getSafeTimezone(timezone)
Expand Down Expand Up @@ -604,7 +604,7 @@ export class AnalyticsController {

return {
chart,
appliedFilters: parsedFilters,
appliedFilters,
}
}

Expand Down Expand Up @@ -646,7 +646,7 @@ export class AnalyticsController {
safeTimezone,
)

const [filtersQuery, filtersParams, parsedFilters] =
const [filtersQuery, filtersParams, appliedFilters] =
this.analyticsService.getFiltersQuery(filters, DataType.ANALYTICS)

const params = {
Expand All @@ -660,7 +660,7 @@ export class AnalyticsController {

return {
...flow,
appliedFilters: parsedFilters,
appliedFilters,
}
}

Expand Down Expand Up @@ -1134,7 +1134,7 @@ export class AnalyticsController {
}

this.analyticsService.validateTimebucket(timeBucket)
const [filtersQuery, filtersParams, parsedFilters] =
const [filtersQuery, filtersParams, appliedFilters] =
this.analyticsService.getFiltersQuery(filters, DataType.ANALYTICS)
await this.analyticsService.checkProjectAccess(
pid,
Expand Down Expand Up @@ -1190,7 +1190,7 @@ export class AnalyticsController {

return {
...result,
appliedFilters: parsedFilters,
appliedFilters,
}
}
}

0 comments on commit b9e9fb2

Please sign in to comment.