From 35bf13cfab98f93a308751608ae77b726d2af3fe Mon Sep 17 00:00:00 2001 From: Darshan Date: Fri, 19 Dec 2025 16:19:15 +0530 Subject: [PATCH] update: variable name :D --- .../Platform/Modules/Projects/Http/Projects/XList.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Projects/Http/Projects/XList.php b/src/Appwrite/Platform/Modules/Projects/Http/Projects/XList.php index 0c124d31ce..5f2996aff4 100644 --- a/src/Appwrite/Platform/Modules/Projects/Http/Projects/XList.php +++ b/src/Appwrite/Platform/Modules/Projects/Http/Projects/XList.php @@ -154,10 +154,10 @@ class XList extends Action return self::$attributeToSubQueryFilters; } - private function find(Database $db, array $queries, array $selectQueries): array + private function find(Database $dbForPlatform, array $queries, array $selectQueries): array { if (empty($selectQueries)) { - return $db->find('projects', $queries); + return $dbForPlatform->find('projects', $queries); } $selectedAttributes = []; @@ -168,7 +168,7 @@ class XList extends Action } if (\in_array('*', $selectedAttributes)) { - return $db->find('projects', $queries); + return $dbForPlatform->find('projects', $queries); } $filtersToSkipMap = []; @@ -186,7 +186,7 @@ class XList extends Action $filtersToSkip = \array_keys($filtersToSkipMap); return empty($filtersToSkip) - ? $db->find('projects', $queries) - : $db->skipFilters(fn () => $db->find('projects', $queries), $filtersToSkip); + ? $dbForPlatform->find('projects', $queries) + : $dbForPlatform->skipFilters(fn () => $dbForPlatform->find('projects', $queries), $filtersToSkip); } }