1
0
Fork 0
mirror of synced 2024-06-13 16:24:47 +12:00

fix remove adapter attribute from storage buckets

This commit is contained in:
Damodar Lohani 2022-01-31 12:50:12 +05:45
parent 5ef23e32c2
commit 64b3a04465
2 changed files with 1 additions and 3 deletions

View file

@ -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 ?? [],

View file

@ -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'],