Browse Source
Cast status_count to integer (#9314)
It is returned as a double because the sum is now over bigint columns
Fix #9312
pull/4/head
Eugen Rochko
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
app/presenters/instance_presenter.rb
|
|
@ -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 |
|
|
|