mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 09:36:16 +01:00
test: remove equals
This commit is contained in:
committed by
Andrew Rodrigues
parent
2f401d7d74
commit
354e0a822d
@@ -18,7 +18,7 @@ module.exports = function (middleware) {
|
|||||||
|
|
||||||
const count = (cache.peek(`${req.ip}:uploaded_file_count`) || 0) + req.files.files.length;
|
const count = (cache.peek(`${req.ip}:uploaded_file_count`) || 0) + req.files.files.length;
|
||||||
|
|
||||||
if (count >= meta.config.uploadRateLimitThreshold) {
|
if (count > meta.config.uploadRateLimitThreshold) {
|
||||||
return next(new Error(['[[error:upload-ratelimit-reached]]']));
|
return next(new Error(['[[error:upload-ratelimit-reached]]']));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user