import { checkAll } from '../../health/checker.js'; import * as statusRepo from '../../db/repos/service_status.js'; import * as services from '../../db/repos/monitored_services.js'; export const NAME = 'health.check'; export async function handler(_job) { const results = await checkAll(await services.listEnabled()); for (const r of results) await statusRepo.upsert(r); }