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' ]; /**