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);