mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
PR review changes
This commit is contained in:
parent
36eb37b36f
commit
4b7a34e05b
1 changed files with 2 additions and 2 deletions
|
|
@ -74,8 +74,8 @@ App::init(function ($utopia, $request, $response, $console, $project, $dbForCons
|
|||
Authorization::disable();
|
||||
|
||||
$mainDomain = null;
|
||||
if(!empty(App::getEnv('_APP_DOMAIN_TARGET', ''))) {
|
||||
$mainDomain = App::getEnv('_APP_DOMAIN_TARGET', '');
|
||||
if(!empty(App::getEnv('_APP_DOMAIN', ''))) {
|
||||
$mainDomain = App::getEnv('_APP_DOMAIN', '');
|
||||
} else {
|
||||
$domainDocument = $dbForConsole->findOne('domains', [], 0, ['_id'], ['ASC']);
|
||||
$mainDomain = $domainDocument ? $domainDocument->getAttribute('domain') : $domain->get();
|
||||
|
|
|
|||
Loading…
Reference in a new issue