diff options
-rw-r--r-- | lib/gitlab/cycle_analytics/metrics_fetcher.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/cycle_analytics/metrics_fetcher.rb b/lib/gitlab/cycle_analytics/metrics_fetcher.rb index 559dbc0e8fc..4115c092c0d 100644 --- a/lib/gitlab/cycle_analytics/metrics_fetcher.rb +++ b/lib/gitlab/cycle_analytics/metrics_fetcher.rb @@ -25,9 +25,9 @@ module Gitlab # cycle analytics stage. interval_query = Arel::Nodes::As.new( cte_table, - subtract_datetimes(base_query_for(name), @stage.start_time_attrs, @stage.end_time_attrs, @stage.stage.to_s)) + subtract_datetimes(base_query_for(@stage.stage), @stage.start_time_attrs, @stage.end_time_attrs, @stage.stage.to_s)) - median_datetime(cte_table, interval_query, name) + median_datetime(cte_table, interval_query, @stage.stage) end def events |