From 7cca509eb303813057e27a95a9e4883eca8c0fcd Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 11 Jun 2018 11:27:21 +0900 Subject: [PATCH] :v: --- src/server/api/endpoints/hashtags/trend.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/server/api/endpoints/hashtags/trend.ts b/src/server/api/endpoints/hashtags/trend.ts index 6a49fec3d8..c888a6cbb5 100644 --- a/src/server/api/endpoints/hashtags/trend.ts +++ b/src/server/api/endpoints/hashtags/trend.ts @@ -50,7 +50,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => { } const hots = data[0].tags - .sort((a, b) => a.count - b.count) + .sort((a, b) => b.count - a.count) .map(tag => tag.tag) .slice(0, 10); @@ -76,7 +76,5 @@ module.exports = (params, user) => new Promise(async (res, rej) => { chart: countsLog.map(counts => counts[i]) })); - console.log(stats); - res(stats); });