mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-01 14:57:14 +08:00
fix(route): fix ymgal article data fetching (#15783)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user