fix: health endpoint utilise request.app.version au lieu de version hardcodée
FlowDeck CI / test (push) Failing after 4s
FlowDeck CI / docker (push) Has been skipped

This commit is contained in:
2026-07-12 10:28:51 -04:00
parent 56682cc576
commit e92c788e3d
+2 -2
View File
@@ -39,7 +39,7 @@ def _check_rate_limit(request: Request) -> bool:
@router.get("/health")
async def health():
async def health(request: Request):
"""Health check: DB + Gitea connectivity."""
db_ok = False
gitea_ok = False
@@ -57,7 +57,7 @@ async def health():
return {
"status": "ok" if (db_ok and gitea_ok) else "degraded",
"version": "2.1.0",
"version": request.app.version,
"db": db_ok,
"gitea": gitea_ok,
}