From 6700586b17ad592dc3f6470fae918ea20441f977 Mon Sep 17 00:00:00 2001 From: Hirzi Date: Fri, 1 Nov 2024 12:04:45 +0700 Subject: [PATCH] fix: total users and servers only show up to 50 --- handlers/getServers.js | 2 +- handlers/getUsers.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/getServers.js b/handlers/getServers.js index 1a8aab5..3349c36 100644 --- a/handlers/getServers.js +++ b/handlers/getServers.js @@ -11,5 +11,5 @@ module.exports = async function getServers() { }, }) .then((res) => res.json()) - .then((data) => data.data.length) + .then((data) => data.meta.pagination.total) } \ No newline at end of file diff --git a/handlers/getUsers.js b/handlers/getUsers.js index f39a643..23693aa 100644 --- a/handlers/getUsers.js +++ b/handlers/getUsers.js @@ -10,5 +10,5 @@ module.exports = async function getUsers() { }, }) .then((res) => res.json()) - .then((data) => data.data.length) + .then((data) => data.meta.pagination.total) } \ No newline at end of file