fix(route): add rss item link checking when cnbc rss is generating... (#11628)

This commit is contained in:
Felix Hsu 2023-01-16 19:11:49 +08:00 committed by GitHub
parent c990508717
commit c532e4032b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ module.exports = async (ctx) => {
const items = await Promise.all(
feed.items
.filter((i) => !i.link.startsWith('https://www.cnbc.com/select/'))
.filter((i) => i.link && !i.link.startsWith('https://www.cnbc.com/select/'))
.map((item) =>
ctx.cache.tryGet(item.link, async () => {
const { data: response } = await got(item.link);