From f27276bb8b35142e01aa4bd32f45b090ad680a25 Mon Sep 17 00:00:00 2001 From: Prem Palanisamy Date: Tue, 3 Mar 2026 06:27:17 +0000 Subject: [PATCH] fix: check parent status !== SUCCESS instead of === ERROR for extensibility --- src/Migration/Destinations/Appwrite.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Migration/Destinations/Appwrite.php b/src/Migration/Destinations/Appwrite.php index d44abf132b..98a4e94fb6 100644 --- a/src/Migration/Destinations/Appwrite.php +++ b/src/Migration/Destinations/Appwrite.php @@ -1476,8 +1476,8 @@ class Appwrite extends Destination $function = $deployment->getFunction(); // Deployment API always creates a new deployment, so unlike other resources - // there's no duplicate detection. Skip if the parent function failed to import. - if ($function->getStatus() === Resource::STATUS_ERROR) { + // there's no duplicate detection. Skip if the parent function wasn't imported successfully. + if ($function->getStatus() !== Resource::STATUS_SUCCESS) { $deployment->setStatus(Resource::STATUS_SKIPPED, 'Parent function "' . $function->getId() . '" failed to import'); return $deployment; @@ -1687,8 +1687,8 @@ class Appwrite extends Destination $site = $deployment->getSite(); // Deployment API always creates a new deployment, so unlike other resources - // there's no duplicate detection. Skip if the parent site failed to import. - if ($site->getStatus() === Resource::STATUS_ERROR) { + // there's no duplicate detection. Skip if the parent site wasn't imported successfully. + if ($site->getStatus() !== Resource::STATUS_SUCCESS) { $deployment->setStatus(Resource::STATUS_SKIPPED, 'Parent site "' . $site->getId() . '" failed to import'); return $deployment;