mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
rss: bangumi calendar today: fix undefine and null
This commit is contained in:
@@ -10,7 +10,7 @@ module.exports = async (ctx) => {
|
||||
const cache = await Promise.all(url.map(ctx.cache.get));
|
||||
const result = await Promise.all(
|
||||
cache.map(async (c, i) => {
|
||||
if (c !== undefined) {
|
||||
if (c) {
|
||||
return Promise.resolve(JSON.parse(c));
|
||||
} else {
|
||||
const response = await axios({
|
||||
|
||||
Reference in New Issue
Block a user