From 12fafd934f3b223060aed5a8815e9711c219c2a7 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Thu, 3 Oct 2024 01:13:58 +0300 Subject: [PATCH] update merged calendar url --- server.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.js b/server.js index 9aed2a0..6e4819c 100644 --- a/server.js +++ b/server.js @@ -149,6 +149,9 @@ END:VEVENT icalString += `END:VCALENDAR`; fs.writeFileSync(filename, icalString); + // Update the merged calendar URL + const mergedCalendarUrl = `${req.protocol}://${req.get('host')}/${filename}`; + } catch (error) { console.error(error);