From 7cd4636d843164ea030340641fcfd2cf6450f12f Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Sat, 24 Jan 2026 21:55:57 +0100 Subject: [PATCH] fix: reduce stats query limit to 500 to match API max limit The API endpoint has a max limit of 500 but the stats query was requesting 1000, causing a 422 validation error. Co-Authored-By: Claude Opus 4.5 --- static/admin/js/admin-users.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/admin/js/admin-users.js b/static/admin/js/admin-users.js index a07ba541..2c32e1ea 100644 --- a/static/admin/js/admin-users.js +++ b/static/admin/js/admin-users.js @@ -208,8 +208,8 @@ function adminUsersPage() { adminUsersLog.info('Loading admin user statistics...'); try { - // Fetch all admin users to compute stats - const url = '/admin/admin-users?skip=0&limit=1000'; + // Fetch all admin users to compute stats (max 500 per API limit) + const url = '/admin/admin-users?skip=0&limit=500'; window.LogConfig.logApiCall('GET', url, null, 'request'); const response = await apiClient.get(url);