From f6e0ef8fdf4aa06f518023b32304e05b5a452d1a Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Mon, 28 Oct 2024 20:53:46 +0300 Subject: [PATCH] create a new iCalendar instance --- server.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.js b/server.js index 3ee1137..c4b7ff7 100644 --- a/server.js +++ b/server.js @@ -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) => {