forked from ryanmwangi/CalMerger
remove unique identifier for the id of each generated calendar
This commit is contained in:
parent
ad4f2faaca
commit
b99932b9ce
|
@ -39,8 +39,6 @@ app.post('/merge', async (req, res) => {
|
||||||
if (!linkGroupName || !calendars || !Array.isArray(calendars) || calendars.length === 0) {
|
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.' });
|
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
|
// Fetch calendar data from URLs
|
||||||
const promises = calendars.map((calendar) => {
|
const promises = calendars.map((calendar) => {
|
||||||
|
|
Loading…
Reference in New Issue