mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	feat: small fixes
This commit is contained in:
		| @@ -290,7 +290,10 @@ module.exports = function (db, module) { | ||||
|  | ||||
| 	module.sortedSetScores = function (key, values, callback) { | ||||
| 		if (!key) { | ||||
| 			return callback(null, null); | ||||
| 			return setImmediate(callback, null, null); | ||||
| 		} | ||||
| 		if (!values.length) { | ||||
| 			return setImmediate(callback, null, []); | ||||
| 		} | ||||
| 		values = values.map(helpers.valueToString); | ||||
| 		db.collection('objects').find({ _key: key, value: { $in: values } }, { projection: { _id: 0, _key: 0 } }).toArray(function (err, result) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user