mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 23:40:38 +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) {
|
module.exports = function (middleware) {
|
||||||
middleware.ratelimitUploads = helpers.try(async (req, res, next) => {
|
middleware.ratelimitUploads = helpers.try(async (req, res, next) => {
|
||||||
const { uid } = req;
|
const { uid } = req;
|
||||||
if (!meta.config.uploadRateLimitThreshold || uid && await user.isAdminOrGlobalMod(uid)) {
|
if (!meta.config.uploadRateLimitThreshold || (uid && await user.isAdminOrGlobalMod(uid))) {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user