fix: steven review

This commit is contained in:
Torsten Dittmann
2023-03-31 22:48:34 +02:00
committed by GitHub
parent 28758d4794
commit bd7d28f7d1
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ use Utopia\Database\Document;
App::init()
->groups(['console'])
->inject('console')
->inject('project')
->action(function (Document $project) {
if ($project->getId() !== 'console') {
throw new Exception(Exception::GENERAL_ACCESS_FORBIDDEN);
@@ -14,25 +14,25 @@ class ConsoleVariables extends Model
'type' => self::TYPE_STRING,
'description' => 'CNAME target for your Appwrite custom domains.',
'default' => '',
'example' => '1.3.0',
'example' => 'appwrite.io',
])
->addRule('_APP_STORAGE_LIMIT', [
'type' => self::TYPE_INTEGER,
'description' => 'Maximum file size allowed for file upload in bytes.',
'default' => '',
'example' => '1.3.0',
'example' => '30000000',
])
->addRule('_APP_FUNCTIONS_SIZE_LIMIT', [
'type' => self::TYPE_INTEGER,
'description' => 'Maximum file size allowed for deployment in bytes.',
'default' => '',
'example' => '1.3.0',
'example' => '30000000',
])
->addRule('_APP_USAGE_STATS', [
'type' => self::TYPE_STRING,
'description' => 'Defines if usage stats are enabled. This value is set to \'enabled\' by default, to disable the usage stats set the value to \'disabled\'.',
'default' => '',
'example' => '1.3.0',
'example' => 'enabled',
]);
}