summaryrefslogtreecommitdiff
path: root/src/api/endpoints/posts/trend.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-03-25 23:29:26 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-03-25 23:29:26 +0900
commit84ba09a378e074a344fdc5702557ee5abff3b945 (patch)
tree2a529ad8c3d62a5cf6257fd843ed379e95cb56f0 /src/api/endpoints/posts/trend.ts
parentv1475 (diff)
downloadsharkey-84ba09a378e074a344fdc5702557ee5abff3b945.tar.gz
sharkey-84ba09a378e074a344fdc5702557ee5abff3b945.tar.bz2
sharkey-84ba09a378e074a344fdc5702557ee5abff3b945.zip
[API] Fix bug
Diffstat (limited to 'src/api/endpoints/posts/trend.ts')
-rw-r--r--src/api/endpoints/posts/trend.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/endpoints/posts/trend.ts b/src/api/endpoints/posts/trend.ts
index 0f0ea4876c..46f682fb1f 100644
--- a/src/api/endpoints/posts/trend.ts
+++ b/src/api/endpoints/posts/trend.ts
@@ -66,6 +66,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
limit: limit,
skip: offset,
sort: {
+ _id: -1,
repost_count: -1
}
});