Fix bug.
This commit is contained in:
parent
58075acb9f
commit
c5a96e8917
|
@ -177,6 +177,7 @@ class SiteFeedAnnc
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
max_len = 0 if (max_len.to_i < 0 rescue true)
|
||||||
if max_len
|
if max_len
|
||||||
pipeline << {"$limit"=> max_len}
|
pipeline << {"$limit"=> max_len}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue