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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user