removed console.log err check

v1.18.x
barisusakli 11 years ago
parent 89bb11a58c
commit a3fecee781

@ -135,15 +135,15 @@ module.exports = function(db, module) {
module.isSortedSetMembers = function(key, values, callback) { module.isSortedSetMembers = function(key, values, callback) {
values = values.map(helpers.valueToString); values = values.map(helpers.valueToString);
db.collection('objects').find({_key: key, value: {$in: values}}).toArray(function(err, results) { db.collection('objects').find({_key: key, value: {$in: values}}).toArray(function(err, results) {
if (err) {
return callback(err);
}
results = results.map(function(item) { results = results.map(function(item) {
return item.value; return item.value;
}); });
values = values.map(function(value) { values = values.map(function(value) {
return results.indexOf(value) !== -1; return results.indexOf(value) !== -1;
}); });
console.log(err, values);
callback(err, results); callback(err, results);
}); });
}; };

Loading…
Cancel
Save