Skip to content

Commit

Permalink
fix: Fix call list datasources api returns error
Browse files Browse the repository at this point in the history
  • Loading branch information
chaplinthink committed Aug 7, 2024
1 parent 5e85fd9 commit bf97017
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions dbgpt/serve/datasource/api/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,18 +167,14 @@ async def query(
@router.get(
"/datasources",
dependencies=[Depends(check_api_key)],
response_model=Result[PaginationResult[DatasourceServeResponse]],
response_model=Result[List[DatasourceServeResponse]],
)
async def query_page(
page: int = Query(default=1, description="current page"),
page_size: int = Query(default=20, description="page size"),
async def query_list(
service: Service = Depends(get_service),
) -> Result[PaginationResult[DatasourceServeResponse]]:
) -> Result[List[DatasourceServeResponse]]:
"""Query Space entities
Args:
page (int): The page number
page_size (int): The page size
service (Service): The service
Returns:
ServerResponse: The response
Expand Down

0 comments on commit bf97017

Please sign in to comment.