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();