Cast status_count to integer (#9314)

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

Fix #9312
This commit is contained in:
Eugen Rochko 2018-11-20 02:52:52 +01:00 committed by GitHub
부모 6a65d87f4d
커밋 0c666ae5e6
No known key found for this signature in database
GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@ -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