mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	fix isSortedSetMembers on mongo
This commit is contained in:
		| @@ -151,13 +151,15 @@ module.exports = function(db, module) { | ||||
| 			if (err) { | ||||
| 				return callback(err); | ||||
| 			} | ||||
|  | ||||
| 			results = results.map(function(item) { | ||||
| 				return item.value; | ||||
| 			}); | ||||
|  | ||||
| 			values = values.map(function(value) { | ||||
| 				return results.indexOf(value) !== -1; | ||||
| 			}); | ||||
| 			callback(err, results); | ||||
| 			callback(null, values); | ||||
| 		}); | ||||
| 	}; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user