mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +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') {
|
if (!empty($envDomain) && $envDomain !== 'localhost') {
|
||||||
$mainDomain = $envDomain;
|
$mainDomain = $envDomain;
|
||||||
} else {
|
} else {
|
||||||
$domainDocument = $dbForConsole->findOne('rules', [Query::orderAsc('$id')]);
|
$domainDocument = $dbForConsole->getDocument('rules', md5($envDomain));
|
||||||
$mainDomain = !$domainDocument->isEmpty() ? $domainDocument->getAttribute('domain') : $domain->get();
|
$mainDomain = !$domainDocument->isEmpty() ? $domainDocument->getAttribute('domain') : $domain->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue