mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	faster getTeasers
got rid of getPostIndices
This commit is contained in:
		| @@ -203,7 +203,7 @@ module.exports = function(db, module) { | ||||
|  | ||||
| 	module.sortedSetCard = function(key, callback) { | ||||
| 		if (!key) { | ||||
| 			return callback(); | ||||
| 			return callback(null, 0); | ||||
| 		} | ||||
| 		db.collection('objects').count({_key: key}, function(err, count) { | ||||
| 			count = parseInt(count, 10); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user