mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	closes #2289, replace Infinity with '+inf'
This commit is contained in:
		| @@ -167,10 +167,10 @@ module.exports = function(db, module) { | ||||
| 		} | ||||
|  | ||||
| 		var scoreQuery = {}; | ||||
| 		if (min !== -Infinity) { | ||||
| 		if (min !== '-inf') { | ||||
| 			scoreQuery.$gte = min; | ||||
| 		} | ||||
| 		if (max !== Infinity) { | ||||
| 		if (max !== '+inf') { | ||||
| 			scoreQuery.$lte = max; | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user