fix(route): fix ymgal article data fetching (#15783)

This commit is contained in:
SunBK201
2024-06-01 21:50:55 +08:00
committed by GitHub
parent cce3bdb4fe
commit 2a5ec73c54
+1 -1
View File
@@ -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);