style changes

This commit is contained in:
Barış Soner Uşaklı
2016-03-01 21:38:36 +02:00
parent 314057bec3
commit 4316c9a566

View File

@@ -535,11 +535,12 @@ module.exports = function(db, module) {
}; };
module.processSortedSet = function(setKey, process, batch, callback) { module.processSortedSet = function(setKey, process, batch, callback) {
var done = false, ids = [], cursor = db.collection('objects'). var done = false;
find({_key: setKey}). var ids = [];
sort({score: 1}). var cursor = db.collection('objects').find({_key: setKey})
project({_id: 0, value: 1}). .sort({score: 1})
batchSize(batch); .project({_id: 0, value: 1})
.batchSize(batch);
async.whilst( async.whilst(
function() { function() {