|
30 | 30 | async def read_groups( # noqa: PLR0913 |
31 | 31 | current_user: Annotated[User, Depends(get_user())], |
32 | 32 | unit_of_work: Annotated[UnitOfWork, Depends(UnitOfWork)], |
33 | | - page: Annotated[int, Query(gt=0)] = 20, |
| 33 | + page: Annotated[int, Query(gt=0)] = 1, |
34 | 34 | page_size: Annotated[int, Query(gt=0, le=50)] = 20, |
35 | 35 | role: Annotated[str | None, Query()] = None, |
36 | 36 | search_query: Annotated[ |
@@ -157,7 +157,7 @@ async def read_group_users( |
157 | 157 | group_id: int, |
158 | 158 | current_user: Annotated[User, Depends(get_user())], |
159 | 159 | unit_of_work: Annotated[UnitOfWork, Depends(UnitOfWork)], |
160 | | - page: Annotated[int, Query(gt=0)] = 20, |
| 160 | + page: Annotated[int, Query(gt=0)] = 1, |
161 | 161 | page_size: Annotated[int, Query(gt=0, le=50)] = 20, |
162 | 162 | ) -> UserPageSchemaAsGroupMember: |
163 | 163 | resource_role = await unit_of_work.group.get_group_permission( |
|
0 commit comments