From b99932b9ce40cec220b74e20937fab0e6ba62254 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Mon, 28 Oct 2024 15:03:54 +0300 Subject: [PATCH] remove unique identifier for the id of each generated calendar --- server.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server.js b/server.js index 96c9504..1f56a71 100644 --- a/server.js +++ b/server.js @@ -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)