mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	dont need last step
This commit is contained in:
		@@ -646,8 +646,7 @@ module.exports = function(db, module) {
 | 
				
			|||||||
			{ $match: { _key: {$in: keys}} },
 | 
								{ $match: { _key: {$in: keys}} },
 | 
				
			||||||
			{ $group: { _id: {value: '$value'}, count: {$sum: 1}} },
 | 
								{ $group: { _id: {value: '$value'}, count: {$sum: 1}} },
 | 
				
			||||||
			{ $match: { count: keys.length} },
 | 
								{ $match: { count: keys.length} },
 | 
				
			||||||
			{ $group: { _id: null,  count: { $sum: 1 } } },
 | 
								{ $group: { _id: null,  count: { $sum: 1 } } }
 | 
				
			||||||
			{ $project: { _id: 0, count: '$count' } }
 | 
					 | 
				
			||||||
		];
 | 
							];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		db.collection('objects').aggregate(pipeline, function(err, data) {
 | 
							db.collection('objects').aggregate(pipeline, function(err, data) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user