cleanup
This commit is contained in:
parent
91c3fde688
commit
1d9919d520
1 changed files with 0 additions and 5 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue