From 70a108e54f6ff2d00cd53c7bdea2d2ddb1e8cb79 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 25 Dec 2024 13:39:04 -0700 Subject: [PATCH] fix: get users --- backend/open_webui/routers/users.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/routers/users.py b/backend/open_webui/routers/users.py index 1206d56f2..a7f53e4e9 100644 --- a/backend/open_webui/routers/users.py +++ b/backend/open_webui/routers/users.py @@ -27,7 +27,11 @@ router = APIRouter() @router.get("/", response_model=list[UserModel]) -async def get_users(skip: int = 0, limit: int = 50, user=Depends(get_admin_user)): +async def get_users( + skip: Optional[int] = None, + limit: Optional[int] = None, + user=Depends(get_admin_user), +): return Users.get_users(skip, limit)