#20-calendar-api #21
1 changed files with 2 additions and 0 deletions
|
@ -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]));
|
||||
|
|
Loading…
Reference in a new issue