fix(route): fix ymgal article data fetching (#15783)
This commit is contained in:
parent
cce3bdb4fe
commit
2a5ec73c54
|
|
@ -42,7 +42,7 @@ async function handler(ctx) {
|
|||
await Promise.all(
|
||||
Object.values(types).map(async (type) => {
|
||||
const response = await got(`${host}/co/topic/list${type}`);
|
||||
data.push(response.data.data);
|
||||
data.push(...response.data.data);
|
||||
})
|
||||
);
|
||||
data = data.sort((a, b) => b.publishTime - a.publishTime).slice(0, 10);
|
||||
|
|
|
|||
Loading…
Reference in New Issue