mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
endpoint revert
This commit is contained in:
parent
514934649e
commit
fcbb073bcc
1 changed files with 3 additions and 5 deletions
|
|
@ -155,11 +155,6 @@ class Migrations extends Action
|
||||||
$database = null;
|
$database = null;
|
||||||
$queries = [];
|
$queries = [];
|
||||||
|
|
||||||
if (($credentials['endpoint'] ?? null) === 'http://localhost/v1') {
|
|
||||||
$protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https';
|
|
||||||
$credentials['endpoint'] = $protocol . '://' . $platform['apiHostname'] . '/v1';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($source === Appwrite::getName() && $destination === DestinationCSV::getName()) {
|
if ($source === Appwrite::getName() && $destination === DestinationCSV::getName()) {
|
||||||
$dataSource = Appwrite::SOURCE_DATABASE;
|
$dataSource = Appwrite::SOURCE_DATABASE;
|
||||||
$database = $this->dbForProject;
|
$database = $this->dbForProject;
|
||||||
|
|
@ -330,6 +325,9 @@ class Migrations extends Action
|
||||||
$credentials['projectId'] = $credentials['projectId'] ?? $project->getId();
|
$credentials['projectId'] = $credentials['projectId'] ?? $project->getId();
|
||||||
$credentials['apiKey'] = $credentials['apiKey'] ?? $tempAPIKey;
|
$credentials['apiKey'] = $credentials['apiKey'] ?? $tempAPIKey;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* endpoint set
|
||||||
|
*/
|
||||||
if (empty($credentials['endpoint'])) {
|
if (empty($credentials['endpoint'])) {
|
||||||
$protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https';
|
$protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https';
|
||||||
$credentials['endpoint'] = $protocol . '://' . $platform['apiHostname'] . '/v1';
|
$credentials['endpoint'] = $protocol . '://' . $platform['apiHostname'] . '/v1';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue