This commit is contained in:
syuilo
2018-06-11 12:52:47 +09:00
parent c0a3ae2612
commit c3e375e8a5
3 changed files with 15 additions and 11 deletions

View File

@ -52,7 +52,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
const hots = data[0].tags
.sort((a, b) => b.count - a.count)
.map(tag => tag.tag)
.slice(0, 10);
.slice(0, 5);
const countPromises: Array<Promise<number[]>> = [];