diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-02-04 14:52:33 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-02-04 14:52:33 +0900 |
| commit | bcd65d290d25219631bb47570478378a698d0fa0 (patch) | |
| tree | de3630065fcddeb1916668ef3b0b43a219340e2e /src/api/endpoints/aggregation/posts | |
| parent | wip (diff) | |
| download | sharkey-bcd65d290d25219631bb47570478378a698d0fa0.tar.gz sharkey-bcd65d290d25219631bb47570478378a698d0fa0.tar.bz2 sharkey-bcd65d290d25219631bb47570478378a698d0fa0.zip | |
wip
Diffstat (limited to 'src/api/endpoints/aggregation/posts')
| -rw-r--r-- | src/api/endpoints/aggregation/posts/reactions.ts | 11 |
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 = []; |