This commit is contained in:
barisusakli
2016-08-15 19:26:18 +03:00
parent 6022fd984a
commit f4e3d571a3

View File

@@ -625,9 +625,7 @@ module.exports = function(db, module) {
limit = 0; limit = 0;
} }
var pipeline = []; var pipeline = [{ $match: { _key: {$in: sets}} }];
pipeline.push({ $match: { _key: {$in: sets}} });
weights.forEach(function(weight, index) { weights.forEach(function(weight, index) {
if (weight !== 1) { if (weight !== 1) {