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:
JimenezLi
2024-05-15 11:38:49 +08:00
committed by GitHub
parent 1a6e8e1bbd
commit 0c36e855b5
+1 -3
View File
@@ -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))),
};
}