From cf38651c14b9831da5c1ed30b5fb300c004c184a Mon Sep 17 00:00:00 2001 From: Matej Stieranka Date: Tue, 1 Jul 2025 14:17:29 +0200 Subject: [PATCH] fix: incompatible Event types --- src/common/parser.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/parser.ts b/src/common/parser.ts index 5b0c9e5..d3f8227 100644 --- a/src/common/parser.ts +++ b/src/common/parser.ts @@ -70,7 +70,7 @@ export interface Event { description: string; type: string; lineId: number; - location?: string; // Optional location field + location: string | null; // Optional location field } export async function getScheduleForLine(lineId: number) { @@ -209,7 +209,7 @@ export async function getScheduleForLine(lineId: number) { description, type: $(td).find("td.program_typ").text().trim(), lineId, - location: location || undefined, // Optional location field + location: location || null, // Optional location field }); currentTime = new Date(endTime);