From 88044eaa71d407e39d27cb39379779328e4a0e6b Mon Sep 17 00:00:00 2001 From: fogelito Date: Sun, 1 Feb 2026 12:15:32 +0200 Subject: [PATCH] check key --- src/Appwrite/Platform/Workers/Migrations.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index 1ef1d68a9b..48d125f6c6 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -343,8 +343,8 @@ class Migrations extends Action if ($migration->getAttribute('source') === SourceAppwrite::getName()) { if (empty($credentials)) { - $credentials['projectId'] = $project->getId(); - $credentials['apiKey'] = $tempAPIKey; + $credentials['projectId'] = $credentials['projectId'] ?? $project->getId(); + $credentials['apiKey'] = $credentials['apiKey'] ?? $tempAPIKey; $credentials['endpoint'] = $endpoint; } }