mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Post-merge fixes
This commit is contained in:
parent
d77dbebe8b
commit
7a131d3508
4 changed files with 40 additions and 0 deletions
|
|
@ -117,6 +117,14 @@ class Create extends Action
|
|||
}
|
||||
}
|
||||
|
||||
$owner = '';
|
||||
if (
|
||||
($functionsDomain != '' && \str_ends_with($domain->get(), $functionsDomain)) ||
|
||||
($sitesDomain != '' && \str_ends_with($domain->get(), $sitesDomain))
|
||||
) {
|
||||
$owner = 'Appwrite';
|
||||
}
|
||||
|
||||
$rule = new Document([
|
||||
'$id' => $ruleId,
|
||||
'projectId' => $project->getId(),
|
||||
|
|
@ -127,6 +135,8 @@ class Create extends Action
|
|||
'trigger' => 'manual',
|
||||
'certificateId' => '',
|
||||
'search' => implode(' ', [$ruleId, $domain->get()]),
|
||||
'owner' => $owner,
|
||||
'region' => $project->getAttribute('region')
|
||||
]);
|
||||
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -125,6 +125,14 @@ class Create extends Action
|
|||
}
|
||||
}
|
||||
|
||||
$owner = '';
|
||||
if (
|
||||
($functionsDomain != '' && \str_ends_with($domain->get(), $functionsDomain)) ||
|
||||
($sitesDomain != '' && \str_ends_with($domain->get(), $sitesDomain))
|
||||
) {
|
||||
$owner = 'Appwrite';
|
||||
}
|
||||
|
||||
$rule = new Document([
|
||||
'$id' => $ruleId,
|
||||
'projectId' => $project->getId(),
|
||||
|
|
@ -141,6 +149,8 @@ class Create extends Action
|
|||
'deploymentVcsProviderBranch' => $branch,
|
||||
'certificateId' => '',
|
||||
'search' => implode(' ', [$ruleId, $domain->get(), $branch]),
|
||||
'owner' => $owner,
|
||||
'region' => $project->getAttribute('region')
|
||||
]);
|
||||
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -117,6 +117,14 @@ class Create extends Action
|
|||
}
|
||||
}
|
||||
|
||||
$owner = '';
|
||||
if (
|
||||
($functionsDomain != '' && \str_ends_with($domain->get(), $functionsDomain)) ||
|
||||
($sitesDomain != '' && \str_ends_with($domain->get(), $sitesDomain))
|
||||
) {
|
||||
$owner = 'Appwrite';
|
||||
}
|
||||
|
||||
$rule = new Document([
|
||||
'$id' => $ruleId,
|
||||
'projectId' => $project->getId(),
|
||||
|
|
@ -129,6 +137,8 @@ class Create extends Action
|
|||
'redirectStatusCode' => $statusCode,
|
||||
'certificateId' => '',
|
||||
'search' => implode(' ', [$ruleId, $domain->get()]),
|
||||
'owner' => $owner,
|
||||
'region' => $project->getAttribute('region')
|
||||
]);
|
||||
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -125,6 +125,14 @@ class Create extends Action
|
|||
}
|
||||
}
|
||||
|
||||
$owner = '';
|
||||
if (
|
||||
($functionsDomain != '' && \str_ends_with($domain->get(), $functionsDomain)) ||
|
||||
($sitesDomain != '' && \str_ends_with($domain->get(), $sitesDomain))
|
||||
) {
|
||||
$owner = 'Appwrite';
|
||||
}
|
||||
|
||||
$rule = new Document([
|
||||
'$id' => $ruleId,
|
||||
'projectId' => $project->getId(),
|
||||
|
|
@ -141,6 +149,8 @@ class Create extends Action
|
|||
'deploymentVcsProviderBranch' => $branch,
|
||||
'certificateId' => '',
|
||||
'search' => implode(' ', [$ruleId, $domain->get(), $branch]),
|
||||
'owner' => $owner,
|
||||
'region' => $project->getAttribute('region')
|
||||
]);
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue