From 0f5563ab2a32ab26cea30df879737fe259d84621 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Mon, 28 Oct 2024 14:54:33 +0300 Subject: [PATCH] remove unused link group name --- server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index e1b9dd0..04e7819 100644 --- a/server.js +++ b/server.js @@ -25,6 +25,7 @@ app.get('/', (req, res) => { res.sendFile('index.html', { root: '.' }); }); +// Merge calendars endpoint app.post('/merge', async (req, res) => { const { linkGroupName, calendars } = req.body; @@ -124,7 +125,7 @@ app.get('/calendar/:name', async (req, res) => { // Read the JSON file to get the source URL and other details const jsonData = JSON.parse(fs.readFileSync(jsonFilePath, 'utf8')); - const { linkGroupName, calendars } = jsonData; + const { calendars } = jsonData; // Fetch calendar data for each merged calendar const promises = calendars.map((calendar) => {