This commit is contained in:
Amirouche 2024-02-06 14:56:42 +01:00
parent 4b09c00e4d
commit bcb920bc32

View file

@ -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()}