This commit is contained in:
Julian Krauser 2024-11-07 10:58:53 +01:00
parent 91c3fde688
commit 1d9919d520

View file

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