diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Verification/Update.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Verification/Update.php index 2898595038..1024f870a7 100644 --- a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Verification/Update.php +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Verification/Update.php @@ -94,7 +94,7 @@ class Update extends Action $updates->setAttribute('status', 'verifying'); - $dbForPlatform->updateDocument('rules', $rule->getId(), $updates); + $rule = $dbForPlatform->updateDocument('rules', $rule->getId(), $updates); // Issue a TLS certificate when domain is verified $queueForCertificates diff --git a/src/Appwrite/Platform/Workers/Certificates.php b/src/Appwrite/Platform/Workers/Certificates.php index 4e5311fa11..fa3d3a34ad 100644 --- a/src/Appwrite/Platform/Workers/Certificates.php +++ b/src/Appwrite/Platform/Workers/Certificates.php @@ -178,7 +178,7 @@ class Certificates extends Action $updates->setAttribute('verificationLogs', $err->getMessage()); } - $dbForPlatform->updateDocument('rules', $rule->getId(), $updates); + $rule = $dbForPlatform->updateDocument('rules', $rule->getId(), $updates); // Issue a TLS certificate when domain is verified if ($success) { @@ -415,7 +415,7 @@ class Certificates extends Action private function validateDomain(Document $rule, bool $isMainDomain, Log $log, ?string $verificationDomainAPI = null, ?string $verificationDomainFunction = null): void { if (!$isMainDomain) { - Base::verifyRule($rule, $log, $verificationDomainAPI, $verificationDomainFunction); + self::verifyRule($rule, $log, $verificationDomainAPI, $verificationDomainFunction); } else { // Main domain validation // TODO: Would be awesome to check A/AAAA record here. Maybe dry run? @@ -514,7 +514,7 @@ class Certificates extends Action ->setAttribute('certificateId', $certificateId) ->setAttribute('status', $success ? 'verified' : 'unverified'); - $dbForPlatform->updateDocument('rules', $rule->getId(), $updates); + $rule = $dbForPlatform->updateDocument('rules', $rule->getId(), $updates); $projectId = $rule->getAttribute('projectId');