fix: missing await in douban

This commit is contained in:
DIYgod 2021-01-25 17:25:55 +08:00
parent fdd383b353
commit f71b246aee
No known key found for this signature in database
GPG Key ID: D159328F47A80DCA
1 changed files with 2 additions and 2 deletions

View File

@ -415,7 +415,7 @@ async function getFullTextItems(ctx, items) {
await Promise.all(
items.map(async (item) => {
let url = prefix + item.status.id;
let cache = ctx.cache.get(url);
let cache = await ctx.cache.get(url);
if (cache) {
item.status.text = cache;
} else {
@ -430,7 +430,7 @@ async function getFullTextItems(ctx, items) {
return;
}
url = prefix + item.status.reshared_status.id;
cache = ctx.cache.get(url);
cache = await ctx.cache.get(url);
if (cache) {
item.status.reshared_status.text = cache;
} else {