fix: incompatible Event types
This commit is contained in:
parent
f727ade539
commit
cf38651c14
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue