fix(route): hjedd cache key (#10753)

This commit is contained in:
Tony
2022-09-10 02:24:45 +08:00
committed by GitHub
parent 7482f08999
commit 0f0dcf470a
+2 -2
View File
@@ -47,7 +47,7 @@ module.exports = {
url: apiUrl,
});
const list = response.data.data.results.slice(0, limit ? parseInt(limit) : 5).map((item) => ({
const list = response.data.data.results.slice(0, limit ? parseInt(limit) : 20).map((item) => ({
guid: item.topicId,
title: item.title,
link: `${rootUrl}/post/details?pid=${item.topicId}`,
@@ -72,7 +72,7 @@ module.exports = {
const attachments = detailResponse.data.data.attachments ?? [];
for await (const attachment of asyncPool(5, attachments, (attachment) =>
tryGet(attachment.id, async () => {
tryGet(attachment.remoteUrl, async () => {
const attachmentResponse = await got({
method: 'get',
url: attachment.coverUrl ?? attachment.remoteUrl,