diff --git a/api/routers/subs/health.py b/api/routers/subs/health.py index 862c60e37..c99f989c9 100644 --- a/api/routers/subs/health.py +++ b/api/routers/subs/health.py @@ -11,7 +11,7 @@ public_app, app, app_apikey = get_routers() async def get_global_health_status(): if config("LOCAL_DEV", cast=bool, default=False): return {"data": ""} - return {"data": health.get_health()} + return {"data": await health.get_health()} if not tenants.tenants_exists_sync(use_pool=False): @@ -20,4 +20,4 @@ if not tenants.tenants_exists_sync(use_pool=False): if await tenants.tenants_exists(): raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=f"Not Found") - return {"data": health.get_health()} + return {"data": await health.get_health()}