mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 12:27:44 +00:00
docs(admin): Fix calculation of total pages using pageSize (#4233)
Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
@@ -205,7 +205,7 @@ const users = await authClient.admin.listUsers({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const totalUsers = users.total;
|
const totalUsers = users.total;
|
||||||
const totalPages = Math.ceil(totalUsers / limit)
|
const totalPages = Math.ceil(totalUsers / pageSize)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Set User Role
|
### Set User Role
|
||||||
|
|||||||
Reference in New Issue
Block a user