From 380f8806fb51c315fc3b81d96c283f0217ef46ea Mon Sep 17 00:00:00 2001 From: busya Date: Thu, 4 Jun 2026 23:54:42 +0300 Subject: [PATCH] 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). --- backend/src/api/routes/git/_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/routes/git/_helpers.py b/backend/src/api/routes/git/_helpers.py index 7f2ac9d5..62f57c9e 100644 --- a/backend/src/api/routes/git/_helpers.py +++ b/backend/src/api/routes/git/_helpers.py @@ -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(