This commit is contained in:
BoHung Chiu 2021-11-10 15:18:23 +08:00
parent 58075acb9f
commit c5a96e8917
1 changed files with 1 additions and 0 deletions

View File

@ -177,6 +177,7 @@ class SiteFeedAnnc
}
}
]
max_len = 0 if (max_len.to_i < 0 rescue true)
if max_len
pipeline << {"$limit"=> max_len}
end