fix(route): hjedd cache key (#10753)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user