mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
check isset
This commit is contained in:
parent
f530ec3db5
commit
c1161ff27c
1 changed files with 3 additions and 5 deletions
|
|
@ -345,11 +345,9 @@ class Migrations extends Action
|
|||
$credentials = $migration->getAttribute('credentials', []);
|
||||
|
||||
if ($migration->getAttribute('source') === SourceAppwrite::getName()) {
|
||||
if (empty($credentials)) {
|
||||
$credentials['projectId'] = $project->getId();
|
||||
$credentials['apiKey'] = $tempAPIKey;
|
||||
$credentials['endpoint'] = $endpoint;
|
||||
}
|
||||
$credentials['projectId'] = $credentials['projectId'] ?? $project->getId();
|
||||
$credentials['apiKey'] = $credentials['apiKey'] ?? $tempAPIKey;
|
||||
$credentials['endpoint'] = $credentials['endpoint'] ?? $endpoint;
|
||||
}
|
||||
|
||||
if ($migration->getAttribute('destination') === DestinationAppwrite::getName()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue