20 lines
450 B
TypeScript
20 lines
450 B
TypeScript
import type { StartupValidationReportDto } from "@mrp/shared";
|
|
|
|
let latestStartupReport: StartupValidationReportDto = {
|
|
status: "WARN",
|
|
generatedAt: new Date(0).toISOString(),
|
|
durationMs: 0,
|
|
passCount: 0,
|
|
warnCount: 0,
|
|
failCount: 0,
|
|
checks: [],
|
|
};
|
|
|
|
export function setLatestStartupReport(report: StartupValidationReportDto) {
|
|
latestStartupReport = report;
|
|
}
|
|
|
|
export function getLatestStartupReport() {
|
|
return latestStartupReport;
|
|
}
|