Use inclusive range in `ActivityTracker#get` (#29413)

pull/2677/head
Matt Jankowski 2024-03-14 17:21:01 -04:00 committed by GitHub
parent df6086d402
commit d39d625561
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class ActivityTracker
end
def get(start_at, end_at = Time.now.utc)
(start_at.to_date...end_at.to_date).map do |date|
(start_at.to_date..end_at.to_date).map do |date|
key = key_at(date.to_time(:utc))
value = case @type