Skip to content

Commit 5b97cf3

Browse files
committed
feat: Vector retrieval matches tables
1 parent 2ebac00 commit 5b97cf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/apps/datasource/api/datasource.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ async def get_tables_by_conf(session: SessionDep, trans: Trans, ds: CoreDatasour
9999
def inner():
100100
return getTablesByDs(session, ds)
101101

102-
await asyncio.to_thread(inner)
102+
return await asyncio.to_thread(inner)
103103
except Exception as e:
104104
# check ds status
105105
def inner():
@@ -117,7 +117,7 @@ async def get_schema_by_conf(session: SessionDep, trans: Trans, ds: CoreDatasour
117117
def inner():
118118
return get_schema(ds)
119119

120-
await asyncio.to_thread(inner)
120+
return await asyncio.to_thread(inner)
121121
except Exception as e:
122122
# check ds status
123123
def inner():

0 commit comments

Comments
 (0)