fix TS errors

This commit is contained in:
Alex Holliday committed 2026-03-26 09:30:20 -07:00
1 parent 62e86434c2
commit e87879970a
3 files changed
+6 -3

No files matched your search

@@ -140,7 +140,10 @@ export class TimescaleChecksRepository implements IChecksRepository {
if (!mapped[mid]) {
mapped[mid] = [];
}
mapped[mid].push(checks[i]);
const check = checks[i];
if (check !== undefined) {
mapped[mid].push(check);
}
}
// Ensure all requested IDs have an entry
for (const id of monitorIds) {
@@ -252,7 +252,7 @@ export class TimescaleStatusPagesRepository implements IStatusPagesRepository {
showUptimePercentage: row.show_uptime_percentage,
showAdminLoginLink: row.show_admin_login_link,
showInfrastructure: row.show_infrastructure,
customCSS: row.custom_css ?? undefined,
customCSS: row.custom_css ?? "",
createdAt: row.created_at.toISOString(),
updatedAt: row.updated_at.toISOString(),
};
@@ -20,7 +20,7 @@ export interface IGeoChecksService {
dateRange: string;
page?: number;
rowsPerPage?: number;
continent: GeoContinent | GeoContinent[];
continent?: GeoContinent | GeoContinent[];
}): Promise<FlatGeoChecksQueryResult>;
}