fix isSortedSetMembers on mongo

This commit is contained in:
barisusakli
2014-08-12 14:39:58 -04:00
parent 4fa80263b0
commit c358ff3d83

View File

@@ -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);
});
};