mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-30 18:46:01 +01:00 
			
		
		
		
	fix: eslint
This commit is contained in:
		
				
					committed by
					
						 Andrew Rodrigues
						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