fix(route/bluestack): proper cache saving

This commit is contained in:
Tony 2026-06-18 06:45:57 +08:00
parent 140734a680
commit 2fb207b58b
1 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ async function handler() {
const $ = cheerio.load(res);
const items = $('div h3 a')
const list = $('div h3 a')
.toArray()
.map((item) => {
item = $(item);
@ -56,8 +56,8 @@ async function handler() {
};
});
await Promise.all(
items.map((item) =>
const items = await Promise.all(
list.map((item) =>
cache.tryGet(item.link, async () => {
const page = await context.newPage();
await page.route('**/*', (route) => {