mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
processDestination params
This commit is contained in:
parent
1ff717ecef
commit
965cf9aac6
1 changed files with 4 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ use Appwrite\Permission;
|
|||
use Appwrite\Role;
|
||||
use Exception;
|
||||
use Utopia\CLI\Console;
|
||||
use Utopia\Config\Config;
|
||||
use Utopia\Database\Database;
|
||||
use Utopia\Database\Document;
|
||||
use Utopia\Database\Exception\Authorization;
|
||||
|
|
@ -152,7 +153,9 @@ class Migrations extends Action
|
|||
DestinationAppwrite::getName() => new DestinationAppwrite(
|
||||
$credentials['projectId'],
|
||||
str_starts_with($credentials['endpoint'], 'http://localhost/v1') ? 'http://appwrite/v1' : $credentials['endpoint'],
|
||||
$credentials['apiKey']
|
||||
$credentials['apiKey'],
|
||||
$this->dbForProject,
|
||||
Config::getParam('collections', [])['databases']['collections']
|
||||
),
|
||||
default => throw new \Exception('Invalid destination type'),
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue