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: