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