fixed monitor api polling
Build and Push Docker Images / detect-changes (push) Successful in 10s
Build and Push Docker Images / build-auth-api (push) Successful in 1m6s
Build and Push Docker Images / build-employee-api (push) Successful in 1m2s
Build and Push Docker Images / build-transit-api (push) Successful in 58s
Build and Push Docker Images / build-error-log-api (push) Successful in 1m10s
Build and Push Docker Images / build-admin-ui (push) Successful in 1m15s
Build and Push Docker Images / build-monitoring-ui (push) Successful in 1m16s
Build and Push Docker Images / deploy-test-node (push) Successful in 4s
Build and Push Docker Images / detect-changes (push) Successful in 10s
Build and Push Docker Images / build-auth-api (push) Successful in 1m6s
Build and Push Docker Images / build-employee-api (push) Successful in 1m2s
Build and Push Docker Images / build-transit-api (push) Successful in 58s
Build and Push Docker Images / build-error-log-api (push) Successful in 1m10s
Build and Push Docker Images / build-admin-ui (push) Successful in 1m15s
Build and Push Docker Images / build-monitoring-ui (push) Successful in 1m16s
Build and Push Docker Images / deploy-test-node (push) Successful in 4s
This commit is contained in:
@@ -70,7 +70,13 @@ function verifyAdmin(req, res, next) {
|
||||
}
|
||||
|
||||
app.get("/health", async (_req, res) => {
|
||||
res.json({ status: "ok", service: "error_log_api" });
|
||||
try {
|
||||
await db.query("SELECT 1");
|
||||
res.json({ status: "ok", service: "error_log_api", database: "ok" });
|
||||
} catch (err) {
|
||||
console.error("GET /health error:", err);
|
||||
res.status(503).json({ status: "unavailable", service: "error_log_api" });
|
||||
}
|
||||
});
|
||||
|
||||
app.post("/error_log", async (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user