#20-calendar-api #21

Merged
jkeffects merged 3 commits from #20-calendar-api into main 2024-12-12 14:04:56 +00:00
Showing only changes of commit 7810f05513 - Show all commits

View file

@ -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<calendar> = [];
if (types.length != 0) {
let typeIds = await CalendarTypeService.getByTypes((types as Array<string>).map((t) => t.split(":")[0]));