diff --git a/server.js b/server.js index c216cfc..d7bdf21 100644 --- a/server.js +++ b/server.js @@ -37,6 +37,8 @@ app.post('/merge', async (req, res) => { }); const results = await Promise.all(promises); + // Filter out any failed requests + const validResults = results.filter((result) => result !== null); // Parse calendar data const cal1 = ical.parseICS(cal1Data.data);