fix: missing await in douban
This commit is contained in:
parent
fdd383b353
commit
f71b246aee
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue