Skip to content

Commit

Permalink
fixed empty item bug in rss feed
Browse files Browse the repository at this point in the history
  • Loading branch information
twallnerWaretec committed Jun 24, 2024
1 parent 412fd43 commit c7b3746
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/repco-core/src/datasources/rss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ export class RssDataSource extends BaseDataSource implements DataSource {

try {
const feed = await this.parser.parseString(xml)
feed.items = feed.items.filter((item) => item.link != undefined)
cursor.newest = this.extractNextCursor(cursor.newest, feed)

const sourceUri = new URL(this.endpoint)
Expand Down

0 comments on commit c7b3746

Please sign in to comment.