From 8286322009ba1424248110add1074de91e2f84c5 Mon Sep 17 00:00:00 2001 From: Prem Palanisamy Date: Thu, 14 May 2026 09:34:55 +0100 Subject: [PATCH] Drop dead headers/key plumbing and redundant status check $this->headers/endpoint/key were only read by the inherited call() method which the destination no longer invokes. STATUS_ERROR is never set inside createPlatform/createApiKey (they throw), so the guard only needs SKIPPED. --- src/Migration/Destinations/Appwrite.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Migration/Destinations/Appwrite.php b/src/Migration/Destinations/Appwrite.php index 7c5ffe7638..e63826dc08 100644 --- a/src/Migration/Destinations/Appwrite.php +++ b/src/Migration/Destinations/Appwrite.php @@ -91,8 +91,6 @@ class Appwrite extends Destination protected Client $client; protected string $project; - protected string $key; - private Functions $functions; private Messaging $messaging; private Sites $sites; @@ -169,8 +167,6 @@ class Appwrite extends Destination ?callable $getDatabaseDSN = null, ) { $this->project = $project; - $this->endpoint = $endpoint; - $this->key = $key; $this->client = (new Client()) ->setEndpoint($endpoint) @@ -184,9 +180,6 @@ class Appwrite extends Destination $this->teams = new Teams($this->client); $this->users = new Users($this->client); - $this->headers['x-appwrite-project'] = $this->project; - $this->headers['x-appwrite-key'] = $this->key; - $this->getDatabasesDB = $getDatabasesDB; $this->getDatabaseDSN = $getDatabaseDSN; } @@ -3085,7 +3078,7 @@ class Appwrite extends Destination break; } - if ($resource->getStatus() !== Resource::STATUS_SKIPPED && $resource->getStatus() !== Resource::STATUS_ERROR) { + if ($resource->getStatus() !== Resource::STATUS_SKIPPED) { $resource->setStatus(Resource::STATUS_SUCCESS); }