mirror of
https://github.com/appwrite/appwrite
synced 2026-05-05 22:38:37 +00:00
chore: update more find methods
This commit is contained in:
parent
e04551ab6e
commit
e8ddda079d
1 changed files with 1 additions and 1 deletions
|
|
@ -514,7 +514,7 @@ App::init()
|
|||
if (!empty($envDomain) && $envDomain !== 'localhost') {
|
||||
$mainDomain = $envDomain;
|
||||
} else {
|
||||
$domainDocument = $dbForConsole->findOne('rules', [Query::orderAsc('$id')]);
|
||||
$domainDocument = $dbForConsole->getDocument('rules', md5($envDomain));
|
||||
$mainDomain = !$domainDocument->isEmpty() ? $domainDocument->getAttribute('domain') : $domain->get();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue