From 06b266c3a7592100625a66a3a2341fc908853afd Mon Sep 17 00:00:00 2001 From: VivianDee <115420678+VivianDee@users.noreply.github.com> Date: Fri, 3 Oct 2025 15:00:37 +0100 Subject: [PATCH] [fix]: status --- app/api/routes/routes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/api/routes/routes.py b/app/api/routes/routes.py index 6a3ec5d..2acfe4e 100644 --- a/app/api/routes/routes.py +++ b/app/api/routes/routes.py @@ -121,9 +121,10 @@ def notification_callback(): def health_check(): - response = {"status": "ok"} + response = {} db_status = "Connect Successful" error = None + status = "ok" try: # Simple query to validate DB connection @@ -131,7 +132,9 @@ def health_check(): except Exception as e: db_status = "Connection Failed" error = str(e) + status = "failed" + response["status"] = status response["db_status"] = db_status if error: response["error"] = error -- 2.34.1