forked from ryanmwangi/CalMerger
remove unique identifier for the id of each generated calendar
This commit is contained in:
parent
ad4f2faaca
commit
b99932b9ce
|
@ -39,9 +39,7 @@ app.post('/merge', async (req, res) => {
|
|||
if (!linkGroupName || !calendars || !Array.isArray(calendars) || calendars.length === 0) {
|
||||
return res.status(400).json({ error: 'Invalid input. Please provide a linkGroupName and at least one calendar.' });
|
||||
}
|
||||
// Generate a unique identifier for this set of calendars
|
||||
const calendarId = crypto.randomBytes(16).toString('hex');
|
||||
|
||||
|
||||
// Fetch calendar data from URLs
|
||||
const promises = calendars.map((calendar) => {
|
||||
return axios.get(calendar.url)
|
||||
|
|
Loading…
Reference in New Issue