mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
shorter
This commit is contained in:
@@ -625,9 +625,7 @@ module.exports = function(db, module) {
|
||||
limit = 0;
|
||||
}
|
||||
|
||||
var pipeline = [];
|
||||
|
||||
pipeline.push({ $match: { _key: {$in: sets}} });
|
||||
var pipeline = [{ $match: { _key: {$in: sets}} }];
|
||||
|
||||
weights.forEach(function(weight, index) {
|
||||
if (weight !== 1) {
|
||||
|
||||
Reference in New Issue
Block a user