fix: incompatible Event types

This commit is contained in:
Matej Stieranka 2025-07-01 14:17:29 +02:00
parent f727ade539
commit cf38651c14

View file

@ -70,7 +70,7 @@ export interface Event {
description: string; description: string;
type: string; type: string;
lineId: number; lineId: number;
location?: string; // Optional location field location: string | null; // Optional location field
} }
export async function getScheduleForLine(lineId: number) { export async function getScheduleForLine(lineId: number) {
@ -209,7 +209,7 @@ export async function getScheduleForLine(lineId: number) {
description, description,
type: $(td).find("td.program_typ").text().trim(), type: $(td).find("td.program_typ").text().trim(),
lineId, lineId,
location: location || undefined, // Optional location field location: location || null, // Optional location field
}); });
currentTime = new Date(endTime); currentTime = new Date(endTime);