fix: eslint

v1.18.x
psychobunny 4 years ago 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();
}

Loading…
Cancel
Save