From eb512918aef2112f4184e7ef58910902bca873f4 Mon Sep 17 00:00:00 2001 From: "mula.liu" Date: Wed, 3 Dec 2025 18:24:58 +0800 Subject: [PATCH] fix: Add missing await to search_body_by_name call in API handler --- backend/app/api/celestial_body.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/api/celestial_body.py b/backend/app/api/celestial_body.py index 78e7360..351833d 100644 --- a/backend/app/api/celestial_body.py +++ b/backend/app/api/celestial_body.py @@ -68,7 +68,7 @@ async def search_celestial_body( logger.info(f"Searching for celestial body: {name}") try: - result = horizons_service.search_body_by_name(name) + result = await horizons_service.search_body_by_name(name) if result["success"]: logger.info(f"Found body: {result['full_name']}")