mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 06:30:40 +08:00
style: auto format
This commit is contained in:
@@ -114,9 +114,7 @@ const getNotes = (url, cache) =>
|
|||||||
const notesPromise = userPosted.data.notes.map((n) => {
|
const notesPromise = userPosted.data.notes.map((n) => {
|
||||||
const noteUrl = url + '/' + n.note_id;
|
const noteUrl = url + '/' + n.note_id;
|
||||||
|
|
||||||
return cache.tryGet(
|
return cache.tryGet(noteUrl, async () => {
|
||||||
noteUrl,
|
|
||||||
async () => {
|
|
||||||
const notePage = await browser.newPage();
|
const notePage = await browser.newPage();
|
||||||
await setPageFilter(notePage);
|
await setPageFilter(notePage);
|
||||||
|
|
||||||
@@ -158,8 +156,7 @@ const getNotes = (url, cache) =>
|
|||||||
} else {
|
} else {
|
||||||
throw Error(`Could not get note ${n.note_id}`);
|
throw Error(`Could not get note ${n.note_id}`);
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
user = otherInfo.data.basic_info;
|
user = otherInfo.data.basic_info;
|
||||||
|
|||||||
Reference in New Issue
Block a user