From b6ba83a876031b87da43f5979fbe13efe9753c6b Mon Sep 17 00:00:00 2001 From: fogelito Date: Sun, 31 Aug 2025 16:14:28 +0300 Subject: [PATCH] deploymentInternalId --- .../Platform/Modules/Functions/Http/Deployments/Delete.php | 2 +- .../Platform/Modules/Functions/Http/Functions/Create.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Delete.php b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Delete.php index 04762646a9..ab01a78b88 100644 --- a/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Delete.php +++ b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Delete.php @@ -118,7 +118,7 @@ class Delete extends Action if ($function->getAttribute('deploymentId') === $deployment->getId()) { // Reset function deployment $function = $dbForProject->updateDocument('functions', $function->getId(), new Document(array_merge($function->getArrayCopy(), [ 'deploymentId' => '', - 'deploymentInternalId' => '', + 'deploymentInternalId' => null, 'deploymentCreatedAt' => '', ]))); } diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Functions/Create.php b/src/Appwrite/Platform/Modules/Functions/Http/Functions/Create.php index a43479e38f..d13edbefaa 100644 --- a/src/Appwrite/Platform/Modules/Functions/Http/Functions/Create.php +++ b/src/Appwrite/Platform/Modules/Functions/Http/Functions/Create.php @@ -370,7 +370,7 @@ class Create extends Base 'type' => 'deployment', 'trigger' => 'manual', 'deploymentId' => !isset($deployment) || $deployment->isEmpty() ? '' : $deployment->getId(), - 'deploymentInternalId' => $deployment->getSequence(), + 'deploymentInternalId' => !isset($deployment) || $deployment->isEmpty() ? null : $deployment->getSequence(), 'deploymentResourceType' => 'function', 'deploymentResourceId' => $function->getId(), 'deploymentResourceInternalId' => $function->getSequence(),