mirror of
https://github.com/appwrite/appwrite
synced 2026-05-06 06:48:22 +00:00
chore: update more find methods
This commit is contained in:
parent
e8ddda079d
commit
6c7f484383
2 changed files with 1 additions and 3 deletions
|
|
@ -52,8 +52,7 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo
|
|||
|
||||
$host = $request->getHostname() ?? '';
|
||||
|
||||
$ruleId = md5($host);
|
||||
$route = Authorization::skip(fn () => $dbForConsole->getDocument('rules', $ruleId));
|
||||
$route = Authorization::skip(fn () => $dbForConsole->getDocument('rules', md5($host)));
|
||||
|
||||
if ($route->isEmpty()) {
|
||||
if ($host === System::getEnv('_APP_DOMAIN_FUNCTIONS', '')) {
|
||||
|
|
|
|||
|
|
@ -72,7 +72,6 @@ class V19 extends Migration
|
|||
}
|
||||
|
||||
$ruleDocument = new Document([
|
||||
'$id' => md5($domain->getAttribute('domain')),
|
||||
'projectId' => $domain->getAttribute('projectId'),
|
||||
'projectInternalId' => $domain->getAttribute('projectInternalId'),
|
||||
'domain' => $domain->getAttribute('domain'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue