fix: process domain

This commit is contained in:
Maël Gangloff 2024-08-10 23:31:34 +02:00
parent 9e4e35f9e8
commit c145a23a63
No known key found for this signature in database
GPG Key ID: 11FDC81C24A7F629

View File

@ -55,7 +55,6 @@ final readonly class ProcessWatchListTriggerHandler
) as $domain
) {
$updatedAt = $domain->getUpdatedAt();
$this->bus->dispatch(new ProcessDomainTrigger($watchList->getToken(), $domain->getLdhName(), $updatedAt));
try {
$this->RDAPService->registerDomain($domain->getLdhName());
@ -66,6 +65,8 @@ final readonly class ProcessWatchListTriggerHandler
]);
$this->sendEmailDomainUpdateError($domain, $watchList->getUser());
}
$this->bus->dispatch(new ProcessDomainTrigger($watchList->getToken(), $domain->getLdhName(), $updatedAt));
}
}