mirror of
https://github.com/clarencechaan/ufc-cal.git
synced 2026-10-19 00:38:30 -07:00
Fix #2
This commit is contained in:
1 parent
b9ef656435
commit
be99d4f5bd
1 file changed
+1
-1
+1
-1
@@ -24,7 +24,7 @@ async function createICS() {
|
||||
if (eventsData) fs.writeFileSync("UFC.ics", eventsData);
|
||||
|
||||
// Filter for PPV events only
|
||||
const ppvEvents = events.filter((event) => /^UFC \d+/.test(event.name));
|
||||
const ppvEvents = events.filter((event) => /UFC \d+/.test(event.name));
|
||||
const formattedPPVEvents = ppvEvents.map((event) =>
|
||||
formatEventForCalendar(event, "UFC-PPV")
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user