From 5b97cf35e205815b2a4878b23fb2227f3d6c3ffb Mon Sep 17 00:00:00 2001 From: junjun Date: Fri, 10 Oct 2025 17:04:14 +0800 Subject: [PATCH] feat: Vector retrieval matches tables --- backend/apps/datasource/api/datasource.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/apps/datasource/api/datasource.py b/backend/apps/datasource/api/datasource.py index 0342ad8d..cb8fceea 100644 --- a/backend/apps/datasource/api/datasource.py +++ b/backend/apps/datasource/api/datasource.py @@ -99,7 +99,7 @@ async def get_tables_by_conf(session: SessionDep, trans: Trans, ds: CoreDatasour def inner(): return getTablesByDs(session, ds) - await asyncio.to_thread(inner) + return await asyncio.to_thread(inner) except Exception as e: # check ds status def inner(): @@ -117,7 +117,7 @@ async def get_schema_by_conf(session: SessionDep, trans: Trans, ds: CoreDatasour def inner(): return get_schema(ds) - await asyncio.to_thread(inner) + return await asyncio.to_thread(inner) except Exception as e: # check ds status def inner():