From 677a17dcefe389176ad9077d08271fb4a4b0a06a Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Wed, 19 Jun 2024 07:02:25 -0400 Subject: [PATCH] Remove two more sql_array from report classes --- app/lib/admin/metrics/measure/new_users_measure.rb | 4 ---- app/lib/admin/metrics/measure/opened_reports_measure.rb | 4 ---- 2 files changed, 8 deletions(-) diff --git a/app/lib/admin/metrics/measure/new_users_measure.rb b/app/lib/admin/metrics/measure/new_users_measure.rb index c8212b874d5..d70f86086ee 100644 --- a/app/lib/admin/metrics/measure/new_users_measure.rb +++ b/app/lib/admin/metrics/measure/new_users_measure.rb @@ -17,10 +17,6 @@ class Admin::Metrics::Measure::NewUsersMeasure < Admin::Metrics::Measure::BaseMe User.where(created_at: previous_time_period).count end - def sql_array - [sql_query_string, { start_at: @start_at, end_at: @end_at }] - end - def data_source User .select(:id) diff --git a/app/lib/admin/metrics/measure/opened_reports_measure.rb b/app/lib/admin/metrics/measure/opened_reports_measure.rb index 53d6d88e4a9..8d901dfd169 100644 --- a/app/lib/admin/metrics/measure/opened_reports_measure.rb +++ b/app/lib/admin/metrics/measure/opened_reports_measure.rb @@ -17,10 +17,6 @@ class Admin::Metrics::Measure::OpenedReportsMeasure < Admin::Metrics::Measure::B Report.where(created_at: previous_time_period).count end - def sql_array - [sql_query_string, { start_at: @start_at, end_at: @end_at }] - end - def data_source Report .select(:id)