mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 01:18:37 +00:00
chore: linter
This commit is contained in:
parent
430ec73a98
commit
ec9ecb6cd4
1 changed files with 4 additions and 4 deletions
|
|
@ -56,15 +56,15 @@ class V19 extends Migration
|
||||||
if ($domain->getAttribute('verification', false)) {
|
if ($domain->getAttribute('verification', false)) {
|
||||||
$status = 'verified';
|
$status = 'verified';
|
||||||
}
|
}
|
||||||
|
|
||||||
$projectId = $domain->getAttribute('projectId');
|
$projectId = $domain->getAttribute('projectId');
|
||||||
$projectInternalId = $domain->getAttribute('projectInternalId');
|
$projectInternalId = $domain->getAttribute('projectInternalId');
|
||||||
|
|
||||||
if (empty($projectId) || empty($projectInternalId)) {
|
if (empty($projectId) || empty($projectInternalId)) {
|
||||||
Console::warning("Error migrating domain {$domain->getAttribute('domain')}: Missing projectId or projectInternalId");
|
Console::warning("Error migrating domain {$domain->getAttribute('domain')}: Missing projectId or projectInternalId");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$ruleDocument = new Document([
|
$ruleDocument = new Document([
|
||||||
'projectId' => $domain->getAttribute('projectId'),
|
'projectId' => $domain->getAttribute('projectId'),
|
||||||
'projectInternalId' => $domain->getAttribute('projectInternalId'),
|
'projectInternalId' => $domain->getAttribute('projectInternalId'),
|
||||||
|
|
@ -75,7 +75,7 @@ class V19 extends Migration
|
||||||
'status' => $status,
|
'status' => $status,
|
||||||
'certificateId' => $domain->getAttribute('certificateId'),
|
'certificateId' => $domain->getAttribute('certificateId'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$this->consoleDB->createDocument('rules', $ruleDocument);
|
$this->consoleDB->createDocument('rules', $ruleDocument);
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue