1
0
Fork 0

remove unique identifier for the id of each generated calendar

This commit is contained in:
Ryan Mwangi 2024-10-28 15:03:54 +03:00
parent ad4f2faaca
commit b99932b9ce
1 changed files with 1 additions and 3 deletions

View File

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