diff --git a/src/controller/publicController.ts b/src/controller/publicController.ts index 5b3769a..8c627fc 100644 --- a/src/controller/publicController.ts +++ b/src/controller/publicController.ts @@ -22,6 +22,8 @@ export async function getCalendarItemsByTypes(req: Request, res: Response): Prom throw new InternalException("set output query value to `ics` or `json` (defaults to `ics`)"); } + types = types.filter((t) => t); + let items: Array = []; if (types.length != 0) { let typeIds = await CalendarTypeService.getByTypes((types as Array).map((t) => t.split(":")[0]));