diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-06-11 11:27:21 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-06-11 11:27:21 +0900 |
| commit | 7cca509eb303813057e27a95a9e4883eca8c0fcd (patch) | |
| tree | f5947c1825805124853bbeb2b6a0e2993432329d /src/server/api/endpoints | |
| parent | :v: (diff) | |
| download | sharkey-7cca509eb303813057e27a95a9e4883eca8c0fcd.tar.gz sharkey-7cca509eb303813057e27a95a9e4883eca8c0fcd.tar.bz2 sharkey-7cca509eb303813057e27a95a9e4883eca8c0fcd.zip | |
:v:
Diffstat (limited to 'src/server/api/endpoints')
| -rw-r--r-- | src/server/api/endpoints/hashtags/trend.ts | 4 |
1 files changed, 1 insertions, 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); }); |