From 70cb768862271e5b2f758b9b7d104f069ec0f206 Mon Sep 17 00:00:00 2001 From: Automated Action Date: Mon, 12 May 2025 14:15:33 +0000 Subject: [PATCH] Fix database health check by properly using SQLAlchemy text() --- app/api/health.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/health.py b/app/api/health.py index 5d5dd52..8840882 100644 --- a/app/api/health.py +++ b/app/api/health.py @@ -14,7 +14,8 @@ def health_check(db: Session = Depends(get_db)): """ try: # Check database connection - db.execute(text("SELECT 1")) + query = text("SELECT 1") + db.execute(query) db.commit() db_status = "healthy" except Exception as e: