From a42522feaa6e06e2e2ee4dfe1dc217104d081125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Fri, 7 Mar 2025 11:11:32 +0100 Subject: [PATCH] Fix test failures --- src/Appwrite/Platform/Modules/Proxy/Http/Rules/Site/Create.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Site/Create.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Site/Create.php index 14a859d1ad..95eacf6e00 100644 --- a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Site/Create.php +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Site/Create.php @@ -108,7 +108,7 @@ class Create extends Action throw new Exception(Exception::RULE_RESOURCE_NOT_FOUND); } - $deployment = $dbForProject->getDocument('deployments', $site->getAttribute('deployment', '')); + $deployment = $dbForProject->getDocument('deployments', $site->getAttribute('deploymentId', '')); // TODO: @christyjacob remove once we migrate the rules in 1.7.x $ruleId = System::getEnv('_APP_RULES_FORMAT') === 'md5' ? md5($domain->get()) : ID::unique();