Skip to content

Commit fb3df91

Browse files
committed
adapts projects
1 parent ab0ebe5 commit fb3df91

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

api/specs/web-server/_projects_crud.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
from typing import Annotated
1313

14+
from _common import as_query
1415
from fastapi import APIRouter, Depends, Header, status
1516
from models_library.api_schemas_directorv2.dynamic_services import (
1617
GetProjectInactivityResponse,
@@ -80,7 +81,7 @@ async def create_project(
8081
response_model=Page[ProjectListItem],
8182
)
8283
async def list_projects(
83-
_q: Annotated[ProjectsListQueryParams, Depends()],
84+
_q: Annotated[as_query(ProjectsListQueryParams), Depends()],
8485
):
8586
...
8687

@@ -143,7 +144,7 @@ async def clone_project(
143144
response_model=Page[ProjectListItem],
144145
)
145146
async def list_projects_full_search(
146-
_q: Annotated[ProjectsSearchQueryParams, Depends()],
147+
_q: Annotated[as_query(ProjectsSearchQueryParams), Depends()],
147148
):
148149
...
149150

0 commit comments

Comments
 (0)