fix(route): `/wechat/ershicimi` (#15570)
* fix(route): /weixin/ershcimi * fix: move async function to outer scope * fix: assign return Promises to item * fix: really assign Promises to item
This commit is contained in:
parent
1a6e8e1bbd
commit
0c36e855b5
|
|
@ -43,12 +43,10 @@ async function handler(ctx) {
|
|||
})
|
||||
.get();
|
||||
|
||||
await Promise.all(items.map((item) => finishArticleItem(item)));
|
||||
|
||||
return {
|
||||
title: `微信公众号 - ${$('span.name').text()}`,
|
||||
link: url,
|
||||
description: $('div.Profile-sideColumnItemValue').text(),
|
||||
item: items,
|
||||
item: await Promise.all(items.map((item) => finishArticleItem(item).catch(() => item))),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue