summaryrefslogtreecommitdiff
path: root/src/api/endpoints/aggregation/posts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints/aggregation/posts')
-rw-r--r--src/api/endpoints/aggregation/posts/reactions.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/api/endpoints/aggregation/posts/reactions.ts b/src/api/endpoints/aggregation/posts/reactions.ts
index 2cd4588ae1..790b523be9 100644
--- a/src/api/endpoints/aggregation/posts/reactions.ts
+++ b/src/api/endpoints/aggregation/posts/reactions.ts
@@ -35,10 +35,13 @@ module.exports = (params) => new Promise(async (res, rej) => {
{ deleted_at: { $gt: startTime } }
]
}, {
- _id: false,
- post_id: false
- }, {
- sort: { created_at: -1 }
+ sort: {
+ _id: -1
+ },
+ fields: {
+ _id: false,
+ post_id: false
+ }
});
const graph = [];