fix: missing await in douban

This commit is contained in:
DIYgod
2021-01-25 17:25:55 +08:00
parent fdd383b353
commit f71b246aee
+2 -2
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 {