diff --git a/lib/check_data_points.rb b/lib/check_data_points.rb index 83c70d7df..5f4025bff 100644 --- a/lib/check_data_points.rb +++ b/lib/check_data_points.rb @@ -6,7 +6,7 @@ class << self # Number of tipline messages def tipline_messages(team_id, start_date, end_date, granularity = nil, platform = nil, language = nil) start_date, end_date = parse_start_end_dates(start_date, end_date) - query = TiplineMessage.where(team_id: team_id, created_at: start_date..end_date) + query = TiplineMessage.where(team_id: team_id, created_at: start_date..end_date, state: ['sent', 'received']) query_based_on_granularity(query, platform, language, granularity) end