Skip to content

Node.js based forum software built for the modern web

dont need last step

Barış Soner Uşaklı0452e9cfa40a
diff --git a/src/database/mongo/sorted.js b/src/database/mongo/sorted.js
index 292f8574ee..eb6505aa47 100644
--- a/src/database/mongo/sorted.js
+++ b/src/database/mongo/sorted.js
@@ -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) {