From 990a32dd9ea7bfa9f5b2e1c4ff245929e267d351 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 8 Apr 2026 23:31:55 +1200 Subject: [PATCH] Update src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- .../Databases/Http/Databases/Collections/Documents/XList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php index 97588630d5..c35eebaea2 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php @@ -170,7 +170,7 @@ class XList extends Action if ($cachedTotal !== null && $cachedTotal !== false) { $total = $cachedTotal; } else { - $total = $dbForProject->count($collectionTableId, $queries, APP_LIMIT_COUNT); + $total = $dbForDatabases->count($collectionTableId, $queries, APP_LIMIT_COUNT); $dbForProject->getCache()->save($cacheKey, $total, $totalField); } } else {