From ce239b680e7cc3d180d855924fe4f4bb7ff3a797 Mon Sep 17 00:00:00 2001 From: Caio <117518+caiosba@users.noreply.github.com> Date: Wed, 24 Jan 2024 13:18:00 -0300 Subject: [PATCH] Fixing a bug --- lib/check_statistics.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/check_statistics.rb b/lib/check_statistics.rb index 05b28dedf2..4c4aaca5f4 100644 --- a/lib/check_statistics.rb +++ b/lib/check_statistics.rb @@ -14,7 +14,7 @@ def requests(team_id, platform, start_date, end_date, language, type = nil) end def reports_received(team_id, platform, start_date, end_date, language) - TiplineRequest.where(team_id: team_id, language: language, smooch_report_received_at: start_date.to_i..end_date.to_i, platform: platform) + TiplineRequest.where(team_id: team_id, language: language, smooch_report_received_at: start_date.to_datetime.to_i..end_date.to_datetime.to_i, platform: platform) end def project_media_requests(team_id, platform, start_date, end_date, language, type = nil)