mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
closes #6499
This commit is contained in:
@@ -179,7 +179,7 @@ module.exports = function (db, module) {
|
||||
{ $group: { _id: { _key: '$_key' }, count: { $sum: 1 } } },
|
||||
{ $project: { _id: 1, count: '$count' } },
|
||||
];
|
||||
db.collection('objects').aggregate(pipeline, function (err, results) {
|
||||
db.collection('objects').aggregate(pipeline).toArray(function (err, results) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user