Skip to content

Commit

Permalink
fix: process domain
Browse files Browse the repository at this point in the history
  • Loading branch information
maelgangloff committed Aug 10, 2024
1 parent b8e434c commit 56cfb1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MessageHandler/ProcessWatchListTriggerHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,15 @@ public function __invoke(ProcessWatchListTrigger $message): void

try {
$domain = $this->RDAPService->registerDomain($domain->getLdhName());
$this->bus->dispatch(new ProcessDomainTrigger($watchList->getToken(), $domain->getLdhName(), $updatedAt));
} catch (\Throwable $e) {
$this->logger->error('An update error email is sent to user {username}.', [
'username' => $watchList->getUser()->getUserIdentifier(),
'error' => $e,
]);
$this->sendEmailDomainUpdateError($domain, $watchList->getUser());
}

$this->bus->dispatch(new ProcessDomainTrigger($watchList->getToken(), $domain->getLdhName(), $updatedAt));
}
}

Expand Down

0 comments on commit 56cfb1a

Please sign in to comment.