mirror of
https://github.com/clarencechaan/ufc-cal.git
synced 2026-10-19 00:38:30 -07:00
This commit is contained in:
1 parent
1c976b44bc
commit
364fb0ae74
1 file changed
+1
-1
+1
-1
@@ -24,7 +24,7 @@ async function createICS() {
|
|||||||
if (eventsData) fs.writeFileSync("UFC.ics", eventsData);
|
if (eventsData) fs.writeFileSync("UFC.ics", eventsData);
|
||||||
|
|
||||||
// Filter for PPV events only
|
// 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) =>
|
const formattedPPVEvents = ppvEvents.map((event) =>
|
||||||
formatEventForCalendar(event, "UFC-PPV")
|
formatEventForCalendar(event, "UFC-PPV")
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user