From bcb920bc32429af33e420a65f1d043a491815b0a Mon Sep 17 00:00:00 2001 From: Amirouche Date: Tue, 6 Feb 2024 14:56:42 +0100 Subject: [PATCH] wip --- api/routers/subs/health.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()}