diff --git a/src/Appwrite/Platform/Modules/Storage/Http/Buckets/Get.php b/src/Appwrite/Platform/Modules/Storage/Http/Buckets/Get.php index 4e75de27c8..268aaa9448 100644 --- a/src/Appwrite/Platform/Modules/Storage/Http/Buckets/Get.php +++ b/src/Appwrite/Platform/Modules/Storage/Http/Buckets/Get.php @@ -84,7 +84,7 @@ class Get extends Action $storageStats = $authorization->skip(fn () => $dbForLogs->getDocument( 'stats', $statsDocId, - [Query::select(['value'])] + [Query::select('value')] )); $totalSize = $storageStats->getAttribute('value', 0); diff --git a/src/Appwrite/Platform/Modules/Storage/Http/Buckets/XList.php b/src/Appwrite/Platform/Modules/Storage/Http/Buckets/XList.php index 601d9b5321..232870cad1 100644 --- a/src/Appwrite/Platform/Modules/Storage/Http/Buckets/XList.php +++ b/src/Appwrite/Platform/Modules/Storage/Http/Buckets/XList.php @@ -144,7 +144,7 @@ class XList extends Action return $dbForLogs->find('stats', [ Query::equal('$id', $statsIds), - Query::select(['value']), + Query::select('value'), ]); });