From 8a53d02d0ce39688506df0657c65bc5f03bd58e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Sun, 27 Oct 2024 21:25:12 +0100 Subject: [PATCH] Remove leftover --- .../Platform/Modules/Sites/Http/Deployments/GetDeployment.php | 3 +-- .../Modules/Sites/Http/Deployments/ListDeployments.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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)) {