mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Apply suggestions from code review
Co-authored-by: Eldad A. Fux <eldad.fux@gmail.com>
This commit is contained in:
@@ -1500,7 +1500,7 @@ $collections = [
|
||||
[
|
||||
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
||||
'label' => 'Encryption',
|
||||
'key' => 'encrypted',
|
||||
'key' => 'encryption',
|
||||
'type' => Database::SYSTEM_VAR_TYPE_BOOLEAN,
|
||||
'default' => true,
|
||||
'required' => true,
|
||||
@@ -1509,7 +1509,7 @@ $collections = [
|
||||
[
|
||||
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
||||
'label' => 'Virus Scan',
|
||||
'key' => 'antivirus',
|
||||
'key' => 'antiVirus',
|
||||
'type' => Database::SYSTEM_VAR_TYPE_BOOLEAN,
|
||||
'default' => true,
|
||||
'required' => true,
|
||||
@@ -1829,4 +1829,4 @@ foreach ($auth as $index => $method) {
|
||||
];
|
||||
}
|
||||
|
||||
return $collections;
|
||||
return $collections;
|
||||
|
||||
@@ -60,13 +60,13 @@ class Bucket extends Model
|
||||
'default' => '',
|
||||
'example' => 'jpg,png',
|
||||
])
|
||||
->addRule('encrypted', [
|
||||
->addRule('encryption', [
|
||||
'type' => self::TYPE_BOOLEAN,
|
||||
'description' => 'Bucket is encrypted.',
|
||||
'default' => true,
|
||||
'example' => false,
|
||||
])
|
||||
->addRule('antivirus', [
|
||||
->addRule('antiVirus', [
|
||||
'type' => self::TYPE_BOOLEAN,
|
||||
'description' => 'Virus scanning is enabled.',
|
||||
'default' => true,
|
||||
|
||||
Reference in New Issue
Block a user