feat: add dev db health contract
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
||||
createAuditRecord,
|
||||
deriveActorFromMeta
|
||||
} from "../audit/index.mjs";
|
||||
import { buildDbHealthContract } from "./db-contract.mjs";
|
||||
|
||||
export const SUPPORTED_RPC_METHODS = Object.freeze([
|
||||
"system.health",
|
||||
@@ -181,10 +182,7 @@ function handleSystemHealth() {
|
||||
status: "ok",
|
||||
serviceId: CLOUD_API_SERVICE_ID,
|
||||
environment: ENVIRONMENT_DEV,
|
||||
db: {
|
||||
connected: false,
|
||||
mode: "not_configured"
|
||||
}
|
||||
db: buildDbHealthContract()
|
||||
};
|
||||
}
|
||||
|
||||
@@ -195,10 +193,7 @@ function handleAdapterDescribe() {
|
||||
restEndpoint: "POST /v1/rpc/{method}",
|
||||
methods: SUPPORTED_RPC_METHODS,
|
||||
auditFields: AUDIT_FIELD_NAMES,
|
||||
db: {
|
||||
connected: false,
|
||||
mode: "migration_skeleton_only"
|
||||
}
|
||||
db: buildDbHealthContract()
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user