mirror of
https://github.com/wassname/talk.git
synced 2026-10-29 13:40:57 +08:00
Sort aggregation
This commit is contained in:
1 parent
c2f8f41e59
commit
1d5f1e676f
1 file changed
+2
-1
+2
-1
@@ -173,7 +173,8 @@ module.exports = class ActionsService {
|
||||
return ActionModel.aggregate([
|
||||
{$match},
|
||||
{$group},
|
||||
{$project}
|
||||
{$project},
|
||||
{$sort: {count: -1, action_type: 1, group_id: 1}},
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user