forked from ryanmwangi/CalMerger
save the calendar to a file
This commit is contained in:
parent
d62a8cd144
commit
4584280eab
|
@ -85,7 +85,8 @@ 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
|
// Save the user input and sanitizedLinkGroupName in a separate JSON file
|
||||||
saveCalendarData(sanitizedLinkGroupName, linkGroupName, calendars);
|
saveCalendarData(sanitizedLinkGroupName, linkGroupName, calendars);
|
||||||
|
|
Loading…
Reference in New Issue