mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
fix: eslint
This commit is contained in:
committed by
Andrew Rodrigues
parent
ea22cd302a
commit
fa0c92a7c4
@@ -12,7 +12,7 @@ const cache = new LRU({
|
||||
module.exports = function (middleware) {
|
||||
middleware.ratelimitUploads = helpers.try(async (req, res, next) => {
|
||||
const { uid } = req;
|
||||
if (!meta.config.uploadRateLimitThreshold || uid && await user.isAdminOrGlobalMod(uid)) {
|
||||
if (!meta.config.uploadRateLimitThreshold || (uid && await user.isAdminOrGlobalMod(uid))) {
|
||||
return next();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user