create a new iCalendar instance

This commit is contained in:
Ryan Mwangi 2024-10-28 20:53:46 +03:00
parent 51bfb1304a
commit f6e0ef8fdf
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ app.post('/merge', async (req, res) => {
// Filter out any failed requests
const validResults = results.filter((result) => result !== null);
// Create a new iCalendar instance
const calendar = icalGenerator({ name: linkGroupName });
// Parse calendar data
const mergedCal = [];
validResults.forEach((result) => {