From 4a3a74d284a5883c2e44edf51b154efc4f0d017f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Tue, 16 Sep 2025 12:34:06 +0200 Subject: [PATCH] AI review fixes --- .../Platform/Modules/Proxy/Http/Rules/Verification/Update.php | 2 +- src/Appwrite/Utopia/Response/Model/Rule.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Verification/Update.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Verification/Update.php index b95e528420..6e2a30a5ee 100644 --- a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Verification/Update.php +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Verification/Update.php @@ -76,7 +76,7 @@ class Update extends Action throw new Exception(Exception::RULE_NOT_FOUND); } - if ($rule->getAttribute('verification') === true) { + if ($rule->getAttribute('status', '') !== RULE_STATUS_VERIFICATION_FAILED) { return $response->dynamic($rule, Response::MODEL_PROXY_RULE); } diff --git a/src/Appwrite/Utopia/Response/Model/Rule.php b/src/Appwrite/Utopia/Response/Model/Rule.php index 958cd2dd45..61bf33dfd3 100644 --- a/src/Appwrite/Utopia/Response/Model/Rule.php +++ b/src/Appwrite/Utopia/Response/Model/Rule.php @@ -85,7 +85,7 @@ class Rule extends Model ->addRule('status', [ 'type' => self::TYPE_STRING, 'description' => 'Domain verification status. Possible values are "' . RULE_STATUS_VERIFICATION_FAILED . '", "' . RULE_STATUS_GENERATING_CERTIFICATE . '", "' . RULE_STATUS_SUCCESSFUL . '" and "' . RULE_STATUS_GENERATION_FAILED . '"', - 'default' => false, + 'default' => '', 'example' => RULE_STATUS_SUCCESSFUL, ]) ->addRule('verificationLogs', [