[PR #4233] [MERGED] docs(admin): Fix calculation of total pages using pageSize #13514

Closed
opened 2026-04-13 08:58:53 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4233
Author: @cosmosgenius
Created: 8/26/2025
Status: Merged
Merged: 8/26/2025
Merged by: @himself65

Base: canaryHead: patch-2


📝 Commits (2)

  • b19785d Fix calculation of total pages using pageSize
  • d914e26 Merge branch 'canary' into patch-2

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 docs/content/docs/plugins/admin.mdx (+1 -1)

📄 Description

Wrong variable was being used. It should be pageSize instead of limit.


Summary by cubic

Corrected the pagination example in the admin plugin docs. totalPages now uses pageSize instead of limit, matching the API and preventing wrong page counts.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/4233 **Author:** [@cosmosgenius](https://github.com/cosmosgenius) **Created:** 8/26/2025 **Status:** ✅ Merged **Merged:** 8/26/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `patch-2` --- ### 📝 Commits (2) - [`b19785d`](https://github.com/better-auth/better-auth/commit/b19785dc5a11afd1f4e996d9099ac364048e6b5f) Fix calculation of total pages using pageSize - [`d914e26`](https://github.com/better-auth/better-auth/commit/d914e26bb941c1d0ff73f90c34d9f234b37d0413) Merge branch 'canary' into patch-2 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/admin.mdx` (+1 -1) </details> ### 📄 Description Wrong variable was being used. It should be pageSize instead of limit. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Corrected the pagination example in the admin plugin docs. totalPages now uses pageSize instead of limit, matching the API and preventing wrong page counts. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 08:58:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#13514