Save the user input and sanitzedLinkGroupName in a separate JSON file
This commit is contained in:
parent
63b1e9b079
commit
8531b4ce2b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue