Skip to content

A platform for community discussion. Free, open, simple.

PERF: Remove total for time to first response report. (#17082)

Alan Guo Xiang Tan0ae7b4301823
diff --git a/app/models/concerns/reports/time_to_first_response.rb b/app/models/concerns/reports/time_to_first_response.rb
index b40f1712c75..6217591ab5b 100644
--- a/app/models/concerns/reports/time_to_first_response.rb
+++ b/app/models/concerns/reports/time_to_first_response.rb
@@ -17,8 +17,6 @@ module Reports::TimeToFirstResponse
report.data << { x: r['date'], y: r['hours'].to_f.round(2) }
end
- report.total = Topic.time_to_first_response_total(category_id: category_id, include_subcategories: include_subcategories)
-
report.prev30Days = Topic.time_to_first_response_total(start_date: report.start_date - 30.days, end_date: report.start_date, category_id: category_id, include_subcategories: include_subcategories)
end
end