1
0
Fork 0

save the calendar to a file

This commit is contained in:
Ryan Mwangi 2024-10-28 20:57:34 +03:00
parent d62a8cd144
commit 4584280eab
1 changed files with 3 additions and 2 deletions

View File

@ -85,8 +85,9 @@ app.post('/merge', async (req, res) => {
});
fs.writeFileSync(`${MERGED_CALENDARS_DIR}/${filename}`, icalString);
// Save the calendar to a file
fs.writeFileSync(`${MERGED_CALENDARS_DIR}/${filename}`, calendar.toString());
// Save the user input and sanitizedLinkGroupName in a separate JSON file
saveCalendarData(sanitizedLinkGroupName, linkGroupName, calendars);