mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
chore: update every 15 minutes
This commit is contained in:
@@ -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()) {
|
||||
/*
|
||||
|
||||
@@ -21,7 +21,7 @@ final readonly class SendNotifWatchListTriggerSchedule implements ScheduleProvid
|
||||
{
|
||||
return (new Schedule())
|
||||
->add(
|
||||
RecurringMessage::every('1 hour', new ProcessWatchListsTrigger()),
|
||||
RecurringMessage::every('15 minutes', new ProcessWatchListsTrigger()),
|
||||
)
|
||||
->stateful($this->cache);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user