fix TS errors
This commit is contained in:
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]) {
|
if (!mapped[mid]) {
|
||||||
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
|
// Ensure all requested IDs have an entry
|
||||||
for (const id of monitorIds) {
|
for (const id of monitorIds) {
|
||||||
|
|||||||
@@ -252,7 +252,7 @@ export class TimescaleStatusPagesRepository implements IStatusPagesRepository {
|
|||||||
showUptimePercentage: row.show_uptime_percentage,
|
showUptimePercentage: row.show_uptime_percentage,
|
||||||
showAdminLoginLink: row.show_admin_login_link,
|
showAdminLoginLink: row.show_admin_login_link,
|
||||||
showInfrastructure: row.show_infrastructure,
|
showInfrastructure: row.show_infrastructure,
|
||||||
customCSS: row.custom_css ?? undefined,
|
customCSS: row.custom_css ?? "",
|
||||||
createdAt: row.created_at.toISOString(),
|
createdAt: row.created_at.toISOString(),
|
||||||
updatedAt: row.updated_at.toISOString(),
|
updatedAt: row.updated_at.toISOString(),
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export interface IGeoChecksService {
|
|||||||
dateRange: string;
|
dateRange: string;
|
||||||
page?: number;
|
page?: number;
|
||||||
rowsPerPage?: number;
|
rowsPerPage?: number;
|
||||||
continent: GeoContinent | GeoContinent[];
|
continent?: GeoContinent | GeoContinent[];
|
||||||
}): Promise<FlatGeoChecksQueryResult>;
|
}): Promise<FlatGeoChecksQueryResult>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user