fix: response model

This commit is contained in:
Torsten Dittmann
2024-01-09 16:47:43 +01:00
parent 5a97c9104c
commit bc384cac8d
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ return [
[
'key' => 'web',
'name' => 'Console',
'version' => '0.6.0-rc.2',
'version' => '0.6.0-rc.3',
'url' => 'https://github.com/appwrite/sdk-for-console',
'package' => '',
'enabled' => true,
@@ -120,6 +120,12 @@ class User extends Model
'default' => false,
'example' => true,
])
->addRule('totp', [
'type' => self::TYPE_BOOLEAN,
'description' => 'TOTP status.',
'default' => false,
'example' => true,
])
->addRule('prefs', [
'type' => Response::MODEL_PREFERENCES,
'description' => 'User preferences as a key-value object',