Save the user input and sanitzedLinkGroupName in a separate JSON file

This commit is contained in:
Ryan Mwangi 2024-10-28 15:10:34 +03:00
parent 63b1e9b079
commit 8531b4ce2b
1 changed files with 1 additions and 1 deletions

View File

@ -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) {