Add missing snowflake range correction (#29841)

This commit is contained in:
Matt Jankowski 2024-04-04 07:33:17 -04:00 committed by GitHub
parent 4045c069f8
commit 966d7f5bf9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,11 +46,11 @@ class Admin::Metrics::Measure::TagServersMeasure < Admin::Metrics::Measure::Base
end
def earliest_status_id
Mastodon::Snowflake.id_at(@start_at, with_random: false)
Mastodon::Snowflake.id_at(@start_at.beginning_of_day, with_random: false)
end
def latest_status_id
Mastodon::Snowflake.id_at(@end_at, with_random: false)
Mastodon::Snowflake.id_at(@end_at.end_of_day, with_random: false)
end
def tag