remove unused link group name

This commit is contained in:
Ryan Mwangi 2024-10-28 14:54:33 +03:00
parent 90f698c84f
commit 0f5563ab2a
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ app.get('/', (req, res) => {
res.sendFile('index.html', { root: '.' }); res.sendFile('index.html', { root: '.' });
}); });
// Merge calendars endpoint
app.post('/merge', async (req, res) => { app.post('/merge', async (req, res) => {
const { linkGroupName, calendars } = req.body; 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 // Read the JSON file to get the source URL and other details
const jsonData = JSON.parse(fs.readFileSync(jsonFilePath, 'utf8')); const jsonData = JSON.parse(fs.readFileSync(jsonFilePath, 'utf8'));
const { linkGroupName, calendars } = jsonData; const { calendars } = jsonData;
// Fetch calendar data for each merged calendar // Fetch calendar data for each merged calendar
const promises = calendars.map((calendar) => { const promises = calendars.map((calendar) => {