From 84ba09a378e074a344fdc5702557ee5abff3b945 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 25 Mar 2017 23:29:26 +0900 Subject: [PATCH] [API] Fix bug --- src/api/endpoints/posts/trend.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/endpoints/posts/trend.ts b/src/api/endpoints/posts/trend.ts index 0f0ea4876..46f682fb1 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 } });