1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Remove two more sql_array from report classes

This commit is contained in:
Matt Jankowski 2024-06-19 07:02:25 -04:00
parent 9c53df5729
commit 070a53f7c1
2 changed files with 0 additions and 8 deletions

View file

@ -17,10 +17,6 @@ class Admin::Metrics::Measure::NewUsersMeasure < Admin::Metrics::Measure::BaseMe
User.where(created_at: previous_time_period).count User.where(created_at: previous_time_period).count
end end
def sql_array
[sql_query_string, { start_at: @start_at, end_at: @end_at }]
end
def data_source def data_source
User User
.select(:id) .select(:id)

View file

@ -17,10 +17,6 @@ class Admin::Metrics::Measure::OpenedReportsMeasure < Admin::Metrics::Measure::B
Report.where(created_at: previous_time_period).count Report.where(created_at: previous_time_period).count
end end
def sql_array
[sql_query_string, { start_at: @start_at, end_at: @end_at }]
end
def data_source def data_source
Report Report
.select(:id) .select(:id)