diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/GetDeployment.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/GetDeployment.php index 39a132e9b9..b70bddb842 100644 --- a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/GetDeployment.php +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/GetDeployment.php @@ -70,8 +70,7 @@ class GetDeployment extends Action $rule = Authorization::skip(fn () => $dbForConsole->findOne('rules', [ Query::equal("resourceType", ["deployment"]), - Query::equal("resourceId", [$deployment->getId()]), - Query::limit(1) + Query::equal("resourceId", [$deployment->getId()]) ])); if (!empty($rule)) { diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/ListDeployments.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/ListDeployments.php index 74ab6e778b..b1642852dc 100644 --- a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/ListDeployments.php +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/ListDeployments.php @@ -111,8 +111,7 @@ class ListDeployments extends Action $rule = Authorization::skip(fn () => $dbForConsole->findOne('rules', [ Query::equal("resourceType", ["deployment"]), - Query::equal("resourceId", [$result->getId()]), - Query::limit(1) + Query::equal("resourceId", [$result->getId()]) ])); if (!empty($rule)) {