From 50ec55d595629680022e09981775119f7d100a08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Thu, 6 Mar 2025 18:35:57 +0100 Subject: [PATCH] Fix site tests --- .../Modules/Sites/Http/Deployments/Duplicate/Create.php | 1 - .../Utopia/Database/Validator/Queries/Deployments.php | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Duplicate/Create.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Duplicate/Create.php index 9ed92e38df..b78c3f928b 100644 --- a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Duplicate/Create.php +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Duplicate/Create.php @@ -92,7 +92,6 @@ class Create extends Action $deployment = $dbForProject->createDocument('deployments', $deployment->setAttributes([ '$internalId' => '', '$id' => $deploymentId, - 'buildId' => '', 'path' => $destination, 'buildCommand' => $site->getAttribute('buildCommand', ''), 'installCommand' => $site->getAttribute('installCommand', ''), diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Deployments.php b/src/Appwrite/Utopia/Database/Validator/Queries/Deployments.php index 42aed88ef6..55303c4003 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Deployments.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Deployments.php @@ -6,12 +6,14 @@ class Deployments extends Base { public const ALLOWED_ATTRIBUTES = [ 'size', - 'buildId', + 'status', 'activate', 'entrypoint', 'commands', 'type', - 'size' + 'size', + 'buildSize', + 'buildTime' ]; /**