From ecf4ebe037de4f1c01e8403740df0d9b29736255 Mon Sep 17 00:00:00 2001 From: fogelito Date: Sun, 31 Aug 2025 17:00:53 +0300 Subject: [PATCH] Sites deploymentInternalId Delete --- .../Platform/Modules/Sites/Http/Deployments/Delete.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Delete.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Delete.php index dfc0f0c976..47d9b5af63 100644 --- a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Delete.php +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Delete.php @@ -109,7 +109,7 @@ class Delete extends Action $site->getId(), $site ->setAttribute('latestDeploymentCreatedAt', $latestDeployment->isEmpty() ? '' : $latestDeployment->getCreatedAt()) - ->setAttribute('latestDeploymentInternalId', $latestDeployment->isEmpty() ? '' : $latestDeployment->getSequence()) + ->setAttribute('latestDeploymentInternalId', $latestDeployment->getSequence()) ->setAttribute('latestDeploymentId', $latestDeployment->isEmpty() ? '' : $latestDeployment->getId()) ->setAttribute('latestDeploymentStatus', $latestDeployment->isEmpty() ? '' : $latestDeployment->getAttribute('status', '')) ); @@ -118,7 +118,7 @@ class Delete extends Action if ($site->getAttribute('deploymentId') === $deployment->getId()) { // Reset site deployment $site = $dbForProject->updateDocument('sites', $site->getId(), new Document(array_merge($site->getArrayCopy(), [ 'deploymentId' => '', - 'deploymentInternalId' => '', + 'deploymentInternalId' => null, 'deploymentScreenshotDark' => '', 'deploymentScreenshotLight' => '', 'deploymentCreatedAt' => '',