refactor: merge checks into monitors (/monitors/:id/history), ingest moves to /internal/ingest
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
const monitorsWithChecks = await Promise.all(
|
||||
monitors.map(async (m) => {
|
||||
try {
|
||||
const checks = await api(`/checks/${m.id}?limit=20`);
|
||||
const checks = await api(`/monitors/${m.id}/history?limit=20`);
|
||||
return { ...m, checks };
|
||||
} catch {
|
||||
return { ...m, checks: [] };
|
||||
|
||||
Reference in New Issue
Block a user