032: fix missing await on git_service.get_status() (async -> coroutine)

git_service.get_status() is async def, but was called without await,
returning a coroutine object instead of dict. The coroutine was then
used as a dict value in RepoStatusBatchResponse, causing Pydantic
ValidationError (dict type mismatch).
This commit is contained in:
2026-06-04 23:54:42 +03:00
parent 87565b8147
commit 380f8806fb

View File

@@ -66,7 +66,7 @@ async def _resolve_repository_status(dashboard_id: int) -> dict:
return _build_no_repo_status_payload()
try:
return git_service.get_status(dashboard_id)
return await git_service.get_status(dashboard_id)
except HTTPException as e:
if e.status_code == 404:
logger.reason(