From 8531b4ce2b37a21f0830742be99cf21ac1317f25 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Mon, 28 Oct 2024 15:10:34 +0300 Subject: [PATCH] Save the user input and sanitzedLinkGroupName in a separate JSON file --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 93815cb..dc565e4 100644 --- a/server.js +++ b/server.js @@ -104,7 +104,7 @@ END:VEVENT fs.writeFileSync(`${MERGED_CALENDARS_DIR}/${filename}`, icalString); // Save the user input and generated ID in a separate JSON file - saveCalendarData(calendarId, linkGroupName, calendars); + saveCalendarData(sanitizedLinkGroupName, linkGroupName, calendars); res.json({ url: `${req.protocol}://${req.get('host')}/calendar/${calendarId}` }); } catch (error) {