check key

This commit is contained in:
fogelito 2026-02-01 12:15:32 +02:00
parent 6011a7c66d
commit 88044eaa71

View file

@ -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;
}
}