From 1d9919d52081dbd3b20bf9b1e17c48bce3638888 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Thu, 7 Nov 2024 10:58:53 +0100 Subject: [PATCH] cleanup --- src/controller/publicController.ts | 5 ----- 1 file changed, 5 deletions(-) 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,