chore: update more find methods

This commit is contained in:
Christy Jacob 2024-11-09 16:18:22 +01:00
parent e8ddda079d
commit 6c7f484383
2 changed files with 1 additions and 3 deletions

View file

@ -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', '')) {

View file

@ -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'),