Skip to content

Commit

Permalink
Ticket CV2-5835: Include only states "sent" and "received" when gener…
Browse files Browse the repository at this point in the history
…ating tipline messages analytics
  • Loading branch information
caiosba committed Dec 17, 2024
1 parent dd55ea2 commit 00f1dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/check_data_points.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 00f1dd0

Please sign in to comment.