summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-03-25 23:37:52 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-03-25 23:37:52 +0900
commit3d7fc7ca462792fc0408cb2cba43e310e37cb546 (patch)
treedb966dacfd891a45a3a62b17f93910bb3308ddeb /src/api
parent[API] Fix bug (diff)
downloadsharkey-3d7fc7ca462792fc0408cb2cba43e310e37cb546.tar.gz
sharkey-3d7fc7ca462792fc0408cb2cba43e310e37cb546.tar.bz2
sharkey-3d7fc7ca462792fc0408cb2cba43e310e37cb546.zip
[API] Fix bug
Diffstat (limited to 'src/api')
-rw-r--r--src/api/endpoints/posts/trend.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/endpoints/posts/trend.ts b/src/api/endpoints/posts/trend.ts
index 46f682fb1f..8a373636ad 100644
--- a/src/api/endpoints/posts/trend.ts
+++ b/src/api/endpoints/posts/trend.ts
@@ -66,8 +66,8 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
limit: limit,
skip: offset,
sort: {
- _id: -1,
- repost_count: -1
+ repost_count: -1,
+ _id: -1
}
});