diff --git a/app/api/routes/routes.py b/app/api/routes/routes.py index a18a62a..858539f 100644 --- a/app/api/routes/routes.py +++ b/app/api/routes/routes.py @@ -140,7 +140,7 @@ def health_check(): # Check database connection try: logger.info(f"Database Health == : {SQLALCHEMY_DATABASE_URI}") - db.session.execute(text("SELECT 1")) + db.session.execute(text("SELECT table_name FROM user_tables ORDER BY table_name")) except Exception as e: db_status = "Connection Failed" errors.append(f"Database Error: {str(e)}")