From 7810f05513da1b51d33b723773b32708f11186c7 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Wed, 4 Dec 2024 18:58:31 +0100 Subject: [PATCH] query types --- src/controller/publicController.ts | 2 ++ 1 file changed, 2 insertions(+) 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]));