chore: update every 15 minutes

This commit is contained in:
Maël Gangloff
2025-01-04 17:35:12 +01:00
parent 80d293df03
commit bd2953abfd
4 changed files with 49 additions and 32 deletions

View File

@@ -83,9 +83,12 @@ final readonly class UpdateDomainsFromWatchlistHandler
$this->RDAPService->registerDomain($domain->getLdhName());
$this->bus->dispatch(new SendDomainEventNotif($watchList->getToken(), $domain->getLdhName(), $updatedAt));
} catch (NotFoundHttpException) {
$notification = (new DomainDeletedNotification($this->sender, $domain));
$this->mailer->send($notification->asEmailMessage(new Recipient($watchList->getUser()->getEmail()))->getMessage());
$this->chatNotificationService->sendChatNotification($watchList, $notification);
if (!$domain->getDeleted()) {
$notification = (new DomainDeletedNotification($this->sender, $domain));
$this->mailer->send($notification->asEmailMessage(new Recipient($watchList->getUser()->getEmail()))->getMessage());
$this->chatNotificationService->sendChatNotification($watchList, $notification);
}
if (null !== $watchList->getConnector()) {
/*