mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
check key
This commit is contained in:
parent
6011a7c66d
commit
88044eaa71
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue