1
0
Fork 0
mirror of synced 2024-05-20 04:32:37 +12:00

fix: certificates and domain collection

This commit is contained in:
Torsten Dittmann 2021-12-28 12:02:39 +01:00
parent c675c048ac
commit 9802058e4f
2 changed files with 6 additions and 5 deletions

View file

@ -729,7 +729,7 @@ $collections = [
'format' => '',
'size' => Database::LENGTH_KEY,
'signed' => true,
'required' => true,
'required' => false,
'default' => null,
'array' => false,
'filters' => [],
@ -740,7 +740,7 @@ $collections = [
'format' => '',
'size' => Database::LENGTH_KEY,
'signed' => true,
'required' => true,
'required' => false,
'default' => null,
'array' => false,
'filters' => [],
@ -751,7 +751,7 @@ $collections = [
'format' => '',
'size' => 0,
'signed' => true,
'required' => true,
'required' => false,
'default' => null,
'array' => false,
'filters' => [],

View file

@ -47,7 +47,7 @@ App::init(function ($utopia, $request, $response, $console, $project, $dbForCons
} else {
Authorization::disable();
$domainDocument = $dbForConsole->findOne('domain', [
$domainDocument = $dbForConsole->findOne('domains', [
new Query('domain', QUERY::TYPE_EQUAL, [$domain->get()])
]);
@ -55,7 +55,8 @@ App::init(function ($utopia, $request, $response, $console, $project, $dbForCons
$domainDocument = new Document([
'domain' => $domain->get(),
]);
$domainDocument = $dbForConsole->createDocument('domains', $domains);
$domainDocument = $dbForConsole->createDocument('domains', $domainDocument);
Console::info('Issuing a TLS certificate for the master domain (' . $domain->get() . ') in a few seconds...');