Skip to content

Commit 360c439

Browse files
committed
revert: throwing error on few rss items
does not break build as intended, only breaks front end
1 parent 9a1d824 commit 360c439

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/lib/api/fetchRSS.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { parseString } from "xml2js"
22

3-
import { RSS_DISPLAY_COUNT } from "../constants"
43
import type { AtomElement, AtomResult, RSSItem, RSSResult } from "../types"
54
import { isValidDate } from "../utils/date"
65

@@ -125,10 +124,6 @@ export const fetchRSS = async (xmlUrl: string | string[]) => {
125124
continue
126125
}
127126
}
128-
129-
if (allItems.length < RSS_DISPLAY_COUNT)
130-
throw new Error("Insufficient number of RSS items fetched")
131-
132127
return allItems
133128
}
134129

0 commit comments

Comments
 (0)