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

This commit is contained in:
Sven laptop
2026-09-21 19:59:53 +02:00
parent 217dfd3abc
commit a17125bdee
4 changed files with 16 additions and 11 deletions
+7 -1
View File
@@ -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) => {