Fix status reference worker parameters error
This commit is contained in:
parent
22ad776635
commit
ad5f9492fb
6 changed files with 8 additions and 9 deletions
|
@ -48,7 +48,7 @@ class StatusStat < ApplicationRecord
|
|||
end
|
||||
|
||||
def status_referred_by_count
|
||||
[attributes['status_referred_by_count'], 0].max
|
||||
[attributes['status_referred_by_count'] || 0, 0].max
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue