From 64b3a04465a051197c97cd8eec0b3fe0fe7f20d7 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 31 Jan 2022 12:50:12 +0545 Subject: [PATCH] fix remove adapter attribute from storage buckets --- app/controllers/api/storage.php | 3 +-- app/http.php | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index 72e69692ce..045c3fc5a0 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -61,7 +61,7 @@ App::post('/v1/storage/buckets') ->inject('dbForProject') ->inject('audits') ->inject('usage') - ->action(function ($bucketId, $name, $permission, $read, $write, $maximumFileSize, $allowedFileExtensions, $enabled, $adapter, $encryption, $antivirus, $response, $dbForProject, $audits, $usage) { + ->action(function ($bucketId, $name, $permission, $read, $write, $maximumFileSize, $allowedFileExtensions, $enabled, $encryption, $antivirus, $response, $dbForProject, $audits, $usage) { /** @var Appwrite\Utopia\Response $response */ /** @var Utopia\Database\Database $dbForProject */ /** @var Appwrite\Event\Event $audits */ @@ -111,7 +111,6 @@ App::post('/v1/storage/buckets') 'maximumFileSize' => $maximumFileSize, 'allowedFileExtensions' => $allowedFileExtensions, 'enabled' => $enabled, - 'adapter' => $adapter, 'encryption' => $encryption, 'antivirus' => $antivirus, '$read' => $read ?? [], diff --git a/app/http.php b/app/http.php index a8971bd5bb..7e1786d409 100644 --- a/app/http.php +++ b/app/http.php @@ -158,7 +158,6 @@ $http->on('start', function (Server $http) use ($payloadSize, $register) { 'maximumFileSize' => (int) App::getEnv('_APP_STORAGE_LIMIT', 0), // 10MB 'allowedFileExtensions' => [], 'enabled' => true, - 'adapter' => '', 'encryption' => true, 'antivirus' => true, '$read' => ['role:all'],