create a new iCalendar instance in the calendar/:name end point
This commit is contained in:
parent
a00321c922
commit
4310d3f395
|
@ -138,6 +138,9 @@ app.get('/calendar/:name', async (req, res) => {
|
||||||
// Filter out any failed requests
|
// Filter out any failed requests
|
||||||
const validResults = results.filter((result) => result !== null);
|
const validResults = results.filter((result) => result !== null);
|
||||||
|
|
||||||
|
// Create a new iCalendar instance
|
||||||
|
const calendar = icalGenerator({ name: calendarName });
|
||||||
|
|
||||||
// Parse calendar data
|
// Parse calendar data
|
||||||
const mergedCal = [];
|
const mergedCal = [];
|
||||||
validResults.forEach((result) => {
|
validResults.forEach((result) => {
|
||||||
|
|
Loading…
Reference in New Issue