diff --git a/src/controller/publicController.ts b/src/controller/publicController.ts index c1b2c91..ef675fa 100644 --- a/src/controller/publicController.ts +++ b/src/controller/publicController.ts @@ -1,5 +1,4 @@ import { Request, Response } from "express"; -import CalendarFactory from "../factory/admin/calendar"; import CalendarService from "../service/calendarService"; import CalendarTypeService from "../service/calendarTypeService"; import { calendar } from "../entity/calendar"; @@ -23,10 +22,6 @@ export async function getCalendarItemsByTypes(req: Request, res: Response): Prom items = await CalendarService.getByTypeNSCDR(); } - moment() - .format("YYYY-M-D-H-m") - .split("-") - .map((a) => parseInt(a)); let events = createEvents( items.map((i) => ({ calName: process.env.CLUB_NAME,