Skip to content
Snippets Groups Projects
Unverified Commit 0c666ae5 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Cast status_count to integer (#9314)

It is returned as a double because the sum is now over bigint columns

Fix #9312
parent 6a65d87f
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ class InstancePresenter
end
def status_count
Rails.cache.fetch('local_status_count') { Account.local.joins(:account_stat).sum('account_stats.statuses_count') }
Rails.cache.fetch('local_status_count') { Account.local.joins(:account_stat).sum('account_stats.statuses_count') }.to_i
end
def domain_count
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment