Commit 1b220df5 authored by James Lopez's avatar James Lopez

fix bug retrieving medians

parent 30c6703f
......@@ -35,7 +35,7 @@ module Gitlab
# cycle analytics stage.
interval_query = Arel::Nodes::As.new(
cte_table,
subtract_datetimes(base_query, @start_time_attrs, @end_time_attrs, name.to_s))
subtract_datetimes(base_query.dup, @start_time_attrs, @end_time_attrs, name.to_s))
median_datetime(cte_table, interval_query, name)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment